This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| color [2017/08/14 12:54] – justin | color [2021/04/21 20:24] (current) – 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 16: | Line 19: | ||
| The following scripting functions include a color parameter: | The following scripting functions include a color parameter: | ||
| - | * [[Set Ambient Light Color]] | + | |
| - | | + | * [[Set Directional Light Color]] |
| - | | + | * [[Set Entity |
| + | * [[Set Group Light Color]] | ||
| ~~NOTOC~~ | ~~NOTOC~~ | ||