Skip to content

Commit

Permalink
Update SetParticleFxLoopedColour.md
Browse files Browse the repository at this point in the history
Added a more precise description for color ranges and also a tip on how to convert an rgb to the necessary range
  • Loading branch information
XenoS-ITA authored Jul 30, 2023
1 parent 9a25e67 commit 89653b4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions GRAPHICS/SetParticleFxLoopedColour.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ ns: GRAPHICS
void SET_PARTICLE_FX_LOOPED_COLOUR(int ptfxHandle, float r, float g, float b, BOOL p4);
```
```
only works on some fx's
p4 = 0
```
## Parameters
* **ptfxHandle**:
* **r**:
* **g**:
* **b**:
* **r**: range from 0.0 to 1.0
* **g**: range from 0.0 to 1.0
* **b**: range from 0.0 to 1.0
* **p4**:
only works on some fx's
p4 = 0
You can use the [inverse lerp](https://www.gamedev.net/articles/programming/general-and-gameplay-programming/inverse-lerp-a-super-useful-yet-often-overlooked-function-r5230/) method to normalize in a range from 0.0 to 1.0 an rgb

0 comments on commit 89653b4

Please sign in to comment.