Touch Develop retirement postponed until June 22, 2019. Sign-in and access to cloud assets to be removed on May 23, 2018.Learn More..


Colors

New or built-in colors
function colors → accent returns Color
Gets the accent color in the current theme
function colors → background returns Color
Gets the background color in the current theme
function colors → black returns Color
Gets the color that has the ARGB value of #FF000000
function colors → blue returns Color
Gets the color that has the ARGB value of #FF0000FF
function colors → brown returns Color
Gets the color that has the ARGB value of #FFA52A2A
function colors → chrome returns Color
Gets the chrome color in the current theme (control background)
function colors → cyan returns Color
Gets the color that has the ARGB value of #FF00FFFF
function colors → dark gray returns Color
Gets the color that has the ARGB value of #FFA9A9A9
function colors → foreground returns Color
Gets the foreground color in the current theme
function colors → from ahsb(alpha : Number, hue : Number, saturation : Number, brightness : Number) returns Color
Creates a color from the alpha, hue, saturation, brightness channels (0.0-1.0 range)
function colors → from argb(alpha : Number, red : Number, green : Number, blue : Number) returns Color
Creates a color from the alpha, red, green, blue channels (0.0-1.0 range)
function colors → from hsb(hue : Number, saturation : Number, brightness : Number) returns Color
Creates a color from the hue, saturation, brightness channels (0.0-1.0 range)
function colors → from rgb(red : Number, green : Number, blue : Number) returns Color
Creates a color from the red, green, blue channels (0.0-1.0 range)
function colors → gray returns Color
Gets the color that has the ARGB value of #FF808080
function colors → green returns Color
Gets the color that has the ARGB value of #FF008000
function colors → is light theme returns Boolean
Indicates if the user is using a light theme in their phone
function colors → light gray returns Color
Gets the color that has the ARGB value of #FFD3D3D3
function colors → linear gradient(c1 : Color, c2 : Color, alpha : Number) returns Color
Computes an intermediate color
function colors → magenta returns Color
Gets the color that has the ARGB value of #FFFF00FF
function colors → orange returns Color
Gets the color that has the ARGB value of #FFFFA500
function colors → pink returns Color
Gets the color that has the ARGB value of #FFFFCBDB
function colors → purple returns Color
Gets the color that has the ARGB value of #FF800080
function colors → random returns Color
Picks a random color
function colors → red returns Color
Gets the color that has the ARGB value of #FFFF0000
function colors → sepia returns Color
Gets the color that has the ARGB value of #FF704214
function colors → subtle returns Color
Gets the subtle color in the current theme (light gray)
function colors → transparent returns Color
Gets the color that has the ARGB value of #00FFFFFF
function colors → wheel(hue : Number) returns Color
Picks a color from a color wheel where the hue is between 0 and 1.
function colors → white returns Color
Gets the color that has the ARGB value of #FFFFFFFF
function colors → yellow returns Color
Gets the color that has the ARGB value of #FFFFFF00

edit this topic vtozljnfcf