This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| color [2020/02/15 14:03] – justin | color [2021/04/21 20:24] (current) – justin | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ---- | ---- | ||
| - | A **color** is a scripting data type that represents an RGB color value and is written as either //color[R, G, B]// or // | + | A **color** is a scripting data type that represents an RGB color value and is written as either //color[R, G, B]// or // |
| ====Examples: | ====Examples: | ||
| Line 12: | Line 12: | ||
| </ | </ | ||
| - | The examples above both represent full intensity blue. The RGB values or six-character | + | The examples above both represent full intensity blue. The RGB values or six-character |
| 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 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~~ | ||