On this page
rgb
RGB color-code constants such as rgb.red, rgb.green, rgb.blue, rgb.sky_blue, rgb.purple, rgb.white, and rgb.off.
Syntax
Atlas Script
rgbReturn value
See the remarks for the returned value and runtime behavior.
Color constants
Every constant the native script registry defines for rgb, generated from the registry manifest.
| Constant | RGB code |
|---|---|
rgb.amber | #ffbf00 |
rgb.aqua | #00ffff |
rgb.black | #000000 |
rgb.blue | #0000ff |
rgb.brown | #8b4513 |
rgb.coral | #ff7f50 |
rgb.crimson | #dc143c |
rgb.cyan | #00ffff |
rgb.dark_green | #006400 |
rgb.fuchsia | #ff00ff |
rgb.gold | #ffd700 |
rgb.gray | #808080 |
rgb.green | #00ff00 |
rgb.grey | #808080 |
rgb.hot_pink | #ff69b4 |
rgb.indigo | #4b0082 |
rgb.lime | #32cd32 |
rgb.magenta | #ff00ff |
rgb.maroon | #800000 |
rgb.mint | #98ff98 |
rgb.navy | #000080 |
rgb.off | #000000 |
rgb.olive | #808000 |
rgb.orange | #ffa500 |
rgb.pink | #ffc0cb |
rgb.purple | #800080 |
rgb.red | #ff0000 |
rgb.rose | #ff007f |
rgb.salmon | #fa8072 |
rgb.silver | #c0c0c0 |
rgb.sky_blue | #87ceeb |
rgb.teal | #008080 |
rgb.turquoise | #40e0d0 |
rgb.violet | #ee82ee |
rgb.white | #ffffff |
rgb.yellow | #ffff00 |
Remarks
RGB color-code constants such as rgb.red, rgb.green, rgb.blue, rgb.sky_blue, rgb.purple, rgb.white, and rgb.off. Each constant is a "#RRGGBB" string, so it can be used anywhere an RGB code is accepted, like lightbar.set(rgb.blue).
Examples
Usage pattern
// rgb is available where its documented API returns or accepts this value.