User Tools

Site Tools


built_in:hue

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
built_in:hue [2018/05/20 19:00]
geez437 [Hue]
built_in:hue [2018/05/21 03:51] (current)
Line 1: Line 1:
 =====Hue===== =====Hue=====
 +The argument **hue** is used in some methods to change the default color.
 +
 +<code> app.Alert( text, title, options, hue );</code>
 +
 +For example in the [[built_in:alert|method (alert)]] above, hue changes the color of the title and the horizontal line below of the alert.
 +====Values====
 +Hue is an integer between -180 and 180. The default value is 0 (blue).
 +
 +^ Value         ^ Color   ^
 +| 150 to 180    | Orange  |
 +| 90 to 150     | Pink    |
 +| 30 to 90      | Purple  |
 +| -30 to 30     | Blue    |
 +| -90 to -30    | Green   |
 +| -150 to -90   | Yellow  |
 +| -180 to -150  | Orange  |
 +
 +====Example====
 +<code javascript>
 +
 +//Orange title and horizontal line
 +function OnStart()
 +{
 +  app.Alert( "Hello World!", "Message", "", 180 );
 +}
 +
 +</code>
 +
 +{{ https://i.imgur.com/TUgy5Cd.jpg }}
 +
 +
  
built_in/hue.1526842841.txt.gz ยท Last modified: 2018/05/21 03:00 (external edit)