Difference between revisions of "0166"
Jump to navigation
Jump to search
(Created page with '{{Icon|trilogy}} <hr /> '''Description''' : Dims the specified blip '''Syntax''' : 0166: set_marker [''blip handle''] brightness_to [''int''] '''Parameter''' : [''int''] :: Boole…') |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{Icon| | + | {{Icon|3}} {{Icon|VC}} '''DIM_BLIP''' |
<hr /> | <hr /> | ||
'''Description''' | '''Description''' | ||
− | : Dims the specified blip | + | : Dims the specified [[blip]] |
'''Syntax''' | '''Syntax''' | ||
: 0166: set_marker [''blip handle''] brightness_to [''int''] | : 0166: set_marker [''blip handle''] brightness_to [''int''] | ||
'''Parameter''' | '''Parameter''' | ||
+ | : [''blip handle''] | ||
+ | :: The handle of the blip | ||
: [''int''] | : [''int''] | ||
− | :: | + | :: {{hint|0|or any value other than 1}} = normal, 1 = dim |
'''Native analog''' | '''Native analog''' | ||
: [[DIM_BLIP]] | : [[DIM_BLIP]] | ||
− | This opcode dims the brightness of the blip by | + | This opcode dims the brightness of the blip. The resulting color is determined by a [[0165#Blip colors|predefined list]] and the color of the normal blip. It essentially halves all three RGB color values of the blip. For example, if the blip's color is normally (255,0,255), dimming the blip will produce a blip with color (127,0,127). It has no effect on sprites. |
== Keywords == | == Keywords == | ||
− | blip, marker, dim, bright | + | set, blip, marker, dim, bright, brightness |
[[Category:OpCodes]] | [[Category:OpCodes]] |
Latest revision as of 04:18, 29 August 2015
Description
- Dims the specified blip
Syntax
- 0166: set_marker [blip handle] brightness_to [int]
Parameter
- [blip handle]
- The handle of the blip
- [int]
- 0 = normal, 1 = dim
Native analog
This opcode dims the brightness of the blip. The resulting color is determined by a predefined list and the color of the normal blip. It essentially halves all three RGB color values of the blip. For example, if the blip's color is normally (255,0,255), dimming the blip will produce a blip with color (127,0,127). It has no effect on sprites.
Keywords
set, blip, marker, dim, bright, brightness