CHANGES THE GAMMA OF THE SPRITE NUMBER N
ACTION
The command SPRITE_GAMMA N,V changes the brightness of the SPRITE designated by its number N.
Every time The command is executed:
- if V=0, the SPRITE remains unchanged,
- if V<0, its gamma decreases,
- if V>0, its gamma increases.
Remark : V must be between -128 and 127.
SYNTAX:
SPRITE_GAMMA N,V
USE ERROR EXAMPLE
rem create a 2D world number 1
scene2d 1
rem load a background picture
file_load 1,"city.bmp"
rem create a SPRITE number 1
sprite 1
rem load a picture to the SPRITE
sprite_file_load 1,"alien.bmp"
rem wait for 1 seconde
wait 1000
rem increase its gamma
sprite_gamma 1,10
SPRITE_GAMMA
SPRITE_GAMMA N,V
SEE ALSO
SPRITE_CONTRAST
SPRITE_BRIGHTNESS