grid:set-display-color
List of: Scheme Extensions
Subjects: Colors, Grids
Contents: Graphic Interaction

Action: Sets the grid display color.

Filename: gi/gi_scm/grid_scm.cxx

Syntax: (grid:set-display-color color)

Arg Types: color color

Returns: unspecified

Description: color specifies the desired color for the grid display, and the grid immediately changes to the selected color. The initial setting is 7. color values include:


0 = Black

1 = Red

2 = Green

3 = Blue

4 = Cyan

5 = Yellow

6 = Magenta

7 = White

Example: ; grid:set-display-color

; Turn the grid on.

(grid:set-display #t)

;; ()

; Set the display color of the grid as an integer.

(grid:set-display-color 5)

;; ()

; Set the display color of the grid as an rgb value.

(grid:set-display-color (color:rgb 0.66 0.54 0.9))

;; ()
PDF/GI/02SCG.PDF
HTM/DATA/GI/GI/02SCG/0007.HTM