Difference between revisions of "SetColor Command"

From GeoGebra Manual
Jump to: navigation, search
Line 2: Line 2:
 
{{command|scripting|US_version=SetColor|non-US_version=SetColour}}
 
{{command|scripting|US_version=SetColor|non-US_version=SetColour}}
 
;SetColor[ <Object>, <Red>, <Green>, <Blue> ]
 
;SetColor[ <Object>, <Red>, <Green>, <Blue> ]
:Changes the color of given object. The red, green and blue represent amount of corresponding color component, 0 being minimum and 1 maximum. Number ''t'' exceeding this interval is mapped to it using function <math>2\left|\frac{t}2-\mathrm round\left(\frac{t}2\right)\right|</math>.
+
:Changes the color of given object. The red, green and blue represent amount of corresponding color component, 0 being minimum and 1 maximum. Number ''t'' exceeding this interval is mapped to it using function <math>2\left\mid\frac{t}2-\mathrm round\left(\frac{t}2\right)\right\mid</math>.
 
;SetColor[ <Object>, <"Color"> ]
 
;SetColor[ <Object>, <"Color"> ]
 
:Changes the color of given object. The color is entered as [[Texts|text]]. The command accepts more than a hundred English color names (see [[Reference:Colors]]). Some of them can be also used in national languages and are listed below.
 
:Changes the color of given object. The color is entered as [[Texts|text]]. The command accepts more than a hundred English color names (see [[Reference:Colors]]). Some of them can be also used in national languages and are listed below.
 
{{TableOfColors}}
 
{{TableOfColors}}

Revision as of 07:04, 28 July 2014


SetColor[ <Object>, <Red>, <Green>, <Blue> ]
Changes the color of given object. The red, green and blue represent amount of corresponding color component, 0 being minimum and 1 maximum. Number t exceeding this interval is mapped to it using function 2\left\mid\frac{t}2-\mathrm round\left(\frac{t}2\right)\right\mid.
SetColor[ <Object>, <"Color"> ]
Changes the color of given object. The color is entered as text. The command accepts more than a hundred English color names (see Reference:Colors). Some of them can be also used in national languages and are listed below.


  • Black
  • Dark Gray
  • Gray
  • Dark Blue
  • Blue
  • Dark Green
  • Green
  • Maroon
  • Crimson
  • Red
  • Magenta
  • Indigo
  • Purple
  • Brown
  • Orange
  • Gold
  • Lime
  • Cyan
  • Turquoise
  • Light Blue
  • Aqua
  • Silver
  • Light Gray
  • Pink
  • Violet
  • Yellow
  • Light Yellow
  • Light Orange
  • Light Violet
  • Light Purple
  • Light Green
  • White
 
© 2024 International GeoGebra Institute