Skip to content
Joshua Piper edited this page Jan 20, 2022 · 5 revisions

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.

Table of Contents

Referencing

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"

Standard Colors

Blue

Index: BLUE

Abbreviation: B

Purpose: Any blue light source

Red

Index: RED

Abbreviation: R

Purpose: Bright red light source, used for LED and halogen primarily, actively for incandescent

Dark Red

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.

Amber

Index: AMBER

Abbreviation: A

Purpose: Amber light source, also perceived as yellow or orange

Green

Index: GREEN

Abbreviation: G

Purpose: Green light source, originated to be used on LED panels

White

Index: WHITE

Abbreviation: W

Purpose: White light emitted by an LED

Soft White

Index: S_WHITE

Abbreviation: SW

Purpose: Soft white light, generally originates from halogen or incandescent sources. Soft refers to a lower color temperature.

Cool White

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.

Pink

Index: PINK

Abbreviation: P

Purpose: A pink styled color for emergency lighting.

Purple

Index: PURPLE

Abbreviation: PU

Purpose: A purple styled light, like the colour found on Metro State escort.

Specialty Colors

Red/Blue

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.