PROJ FLASH COLOR: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
Fox (talk | contribs)
No edit summary
Line 1: Line 1:
'''defineprojectile''' <tilenum> '''PROJ_FLASH_COLOR''' <flash color>
PROJ_FLASH_COLOR is a [[defineprojectile]] property used to set the color (if any) of a Polymer light.
PROJ_FLASH_COLOR is a [[defineprojectile]] property used to set the color (if any) of a Polymer light.


Syntax is:
Where <flash color> is the color of the light. The number can be determined from RGB color values by adding the red value plus the green value shifted left 8 bits plus the blue value shifted left 16 bits. So, RGB of 100, 100, 100 would be 6579300 = 100 + 100<<8 + 100<<16 = 100 + 25600 + 6553600. 150, 100, 255 would be 16737380.  
 
[[defineprojectile]] <tile number> PROJ_FLASH_COLOR <number>
 
Where <number> is the color of the light. The number can be determined from RGB color values by adding the red value plus the green value shifted left 8 bits plus the blue value shifted left 16 bits. So, RGB of 100, 100, 100 would be 6579300 = 100 + 100<<8 + 100<<16 = 100 + 25600 + 6553600. 150, 100, 255 would be 16737380.  


[[Category:Projectile_structure_members]]
[[Category:Projectile_structure_members]]

Revision as of 06:26, 21 February 2020

defineprojectile <tilenum> PROJ_FLASH_COLOR <flash color>

PROJ_FLASH_COLOR is a defineprojectile property used to set the color (if any) of a Polymer light.

Where <flash color> is the color of the light. The number can be determined from RGB color values by adding the red value plus the green value shifted left 8 bits plus the blue value shifted left 16 bits. So, RGB of 100, 100, 100 would be 6579300 = 100 + 100<<8 + 100<<16 = 100 + 25600 + 6553600. 150, 100, 255 would be 16737380.