Color Chooser
You can display the
Color Chooser dialog by clicking on the Select the required color by clicking on it and then click on OK. To keep the current color click on Cancel. When the color choice is saved in a GSL Script a number is used. The 96 colours have numbers from 0 to 95. 0 is black, 1 is white, 2 is red, ... etc. You can see the RGB values of these colors using: echo(colortables.GeneralColorTable.XuNrgbValues) GSL programmers should see the documentation of the colortables object To find the nearest match to a desired color (r,g,b) you can use the following code:
Return to Gsharp Reference Manual |