ReferenceScript nodesMath › Colour
Select Colour
A when Pick A is true, otherwise B.
ƒSelect Colour
AResult
B
Pick A
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Aa | colour and alpha | "#ffffffff" | – |
Bb | colour and alpha | "#000000ff" | – |
Pick ApickA | bool | false | – |
Outputs
| Pin | Type |
|---|---|
Resultout | colour and alpha |
The code it becomes
The graph below written as a script would write it.
// On Scene Startscene.log((((false) ? "#ffffffff" : "#000000ff")));In a graph
◆On Scene Start
ƒSelect Colour
AResult
B
Pick A
ƒPrint
In Text
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.