This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
color [2017/08/14 12:54] – justin | color [2020/02/15 14:06] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | A **color** is a scripting data type that, as the name implies, | + | A **color** is a scripting data type that represents an RGB color value and is written as either |
- | ====Example:==== | + | ====Examples:==== |
- | < | + | < |
color[0, 0, 255] | color[0, 0, 255] | ||
+ | </ | ||
+ | <code bauxite> | ||
+ | color[" | ||
</ | </ | ||
- | The example | + | The examples |
When working in the visual [[Script Editor]], any function that has a color parameter will provide a color picker button in its visual node (as shown in the example below) that can be clicked on to select a color. | When working in the visual [[Script Editor]], any function that has a color parameter will provide a color picker button in its visual node (as shown in the example below) that can be clicked on to select a color. | ||
Line 19: | Line 22: | ||
* [[Set Directional Light Color]] | * [[Set Directional Light Color]] | ||
* [[Set Entity Light Color]] | * [[Set Entity Light Color]] | ||
+ | * [[Set Group Light Color]] | ||
~~NOTOC~~ | ~~NOTOC~~ |