TerraingridSetColours
DocsTerraingridSetColours(lowR, lowG, lowB, lowAlpha, R, G, B, Alpha, highR, highG, highB, highAlpha)Description
This native is used along with these two natives: <code>TERRAINGRID_ACTIVATE</code> and <code>TERRAINGRID_SET_PARAMS</code>.
This native sets the colors for the golf putting grid. the 'min...' values are for the lower areas that the grid covers, the 'max...' values are for the higher areas that the grid covers, all remaining values are for the 'normal' ground height.
All those natives combined they will output something like this: https://i.imgur.com/TC6cku6.png
Old description:
Only called in golf and golf_mp
parameters used are
GRAPHICS::\_0x5CE62918F8D703C7(255, 0, 0, 64, 255, 255, 255, 5, 255, 255, 0, 64);
Parameters
| Name | Type | Description |
|---|---|---|
lowR | int | red value for the lower level |
lowG | int | green value for the lower level |
lowB | int | blue value for the lower level |
lowAlpha | int | alpha value for the lower level |
R | int | red value for the normal level |
G | int | green value for the normal level |
B | int | blue value for the normal level |
Alpha | int | alpha value for the normal level |
highR | int | red value for the upper level |
highG | int | green value for the upper level |
highB | int | blue value for the upper level |
highAlpha | int | alpha value for the upper level |
Returns
voidThis native does not return a value.
Examples
Official
N_0xa356990e161c9e65(true); // toggle on/off
// this native configures the location, size, rotation, normal height, and the difference ratio between min, normal and max.
N_0x1c4fc5752bcd8e48(-1114.121f, 220.789f, 63.78f, -1f, 0.85f, 0f, 15f, 15f, -1f, 20f, 40f, 63.78f, 0.2f);
// This native defines the colors (and alpha/opacity levels) for min, normal and max heights.
// (in this case: red for lower, white for normal, yellow for higher)
N_0x5ce62918f8d703c7(255, 0, 0, 64, 255, 255, 255, 5, 255, 255, 0, 64);