CHANGES THE CONTRAST OF THE SPRITE NUMBER N
ACTION
The command SPRITE_CONTRAST N,V changes the contrast 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 contrast decreases,
- if V>0, its contrast increases.
Remark : V must be between -128 and 127.
SYNTAX:
SPRITE_CONTRAST 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 contrast
sprite_contrast 1,10
SPRITE_CONTRAST
SPRITE_CONTRAST N,V
SEE ALSO
SPRITE_BRIGHTNESS
SPRITE_GAMMA