-
Notifications
You must be signed in to change notification settings - Fork 19
Colors
Photon contains a library of predefined colors. Each color in the library has several sub-colors that make up various elements of the actual light effect.
While the vast majority of Photon vehicle files refer to colors with single characters, this approach is an additional "helper" feature. Each single character is actually a local reference to a string, which is then used as a key to obtain the actual color values. To use the standard Photon color abbreviations, you may use this snippet:
local A = "AMBER" local R = "RED" local DR = "D_RED" local B = "BLUE" local W = "WHITE" local CW = "C_WHITE" local SW = "S_WHITE" local G = "GREEN" local P = "PINK" local PU = "PURPLE" local RB = "BLUE/RED"
Index: BLUE
Abbreviation: B
Purpose: Any blue light source
Index: RED
Abbreviation: R
Purpose: Bright red light source, used for LED and halogen primarily, actively for incandescent
Index: D_RED
Abbreviation: DR
Purpose: Dim red, primarily on car lights where there is a red cover over the light source. While Photon has integrated functionality to give the illusion of decreased brightness, the dark red color emphasizes this based on its standard use on basic car lighting.
Index: AMBER
Abbreviation: A
Purpose: Amber light source, also perceived as yellow or orange
Index: GREEN
Abbreviation: G
Purpose: Green light source, originated to be used on LED panels
Index: WHITE
Abbreviation: W
Purpose: White light emitted by an LED
Index: S_WHITE
Abbreviation: SW
Purpose: Soft white light, generally originates from halogen or incandescent sources. Soft refers to a lower color temperature.
Index: C_WHITE
Abbreviation: CW
Purpose: Cool or hard white light, generally from a xenon bulb. Cool is an allusion to the bluish appearance, although it imitates a higher color temperature.
Index: PINK
Abbreviation: P
Purpose: A pink styled color for emergency lighting.
Index: PURPLE
Abbreviation: PU
Purpose: A purple styled light, like the colour found on Metro State escort.
Full name: "RED/BLUE" or "BLUE/RED" (swapping the order changes the light direction)
Abbreviation: RB
Purpose: This is a specialized feature to primarily cater to the Federal Signal Vision SLR lightbar, where the color of the rotating light has the appearance of changing colors depending on which direction the light is facing. The color listed first in the order is displayed forwards while the latter color is displayed facing the rear. The forward-slash "/" differentiates the color, so any combination of colors will work.