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 09:35] – justin | color [2020/02/15 14:04] – 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 examples above both represent full intensity blue. The RGB values or six-character hexadecimal code can be taken from one of the built-in color pickers (for example, by editing a [[palette]] color on the [[Editor Tools]] tab), or from many common image editing applications like Microsoft Paint. | ||
+ | |||
+ | 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. | ||
+ | |||
+ | {{: | ||
- | The example above represents full intensity blue. The RGB values can be taken from the application' | + | The following scripting functions include |
+ | * [[Set Ambient Light Color]] | ||
+ | * [[Set Directional Light Color]] | ||
+ | | ||
~~NOTOC~~ | ~~NOTOC~~ |