Difference between revisions of "SetColor Command"

From GeoGebra Manual
Jump to: navigation, search
m (formating)
(fixed color list)
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=4.0}}</noinclude>
 
<noinclude>{{Manual Page|version=4.0}}</noinclude>
 
{{command|scripting}}
 
{{command|scripting}}
;SetColor[ <Object>, "color" ]
 
:Changes the color of given object. The color is entered as [[Texts|text]]. Accepted values are
 
:"Lime", "Maroon", "Purple", "Red", "Silver", "White", "Yellow", "Brown", "Crimson", "Cyan", "Dark Blue", "Dark Gray", "Light Gray", "Gold", "Magenta", "Indigo", "Pink", "Orange", "Violet", "Turquoise".
 
 
;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|\frac{t}2-\mathrm round\left(\frac{t}2\right)\right|</math>.
 +
;SetColor[ <Object>, "color" ]
 +
:Changes the color of given object. The color is entered as [[Texts|text]]. The command accepts more than hundred English color names (see [[Reference:Colors]]). Some of them can be also used in national languages and are listed below.
 +
<div class="grid">
 +
<div class='box_4'>
 +
:* <span style="color:gray">Gray</span>
 +
:* <span style="color:aqua">Aqua</span>
 +
:* <span style="color:black">Black</span>
 +
:* <span style="color:blue">Blue</span>
 +
:* <span style="color:green">Green</span>
 +
:* <span style="color:lime">Lime</span>
 +
:* <span style="color:maroon">Maroon</span>
 +
:* <span style="color:purple">Purple</span>
 +
:* <span style="color:red">Red</span>
 +
:* <span style="color:silver">Silver</span>
 +
:* <span style="color:white;background-color:navy">White</span>
 +
:* <span style="color:yellow">Yellow</span>
 +
:* <span style="color:brown">Brown</span>
 +
</div>
 +
 +
<div class='box_4'>
 +
:* <span style="color:crimson">Crimson</span>
 +
:* <span style="color:cyan">Cyan</span>
 +
:* <span style="color:darkblue">Dark Blue</span>
 +
:* <span style="color:darkgray">Dark Gray</span>
 +
:* <span style="color:lightgrey">Light Gray</span>
 +
:* <span style="color:gold">Gold</span>
 +
:* <span style="color:magenta">Magenta</span>
 +
:* <span style="color:indigo">Indigo</span>
 +
:* <span style="color:pink">Pink</span>
 +
:* <span style="color:orange">Orange</span>
 +
:* <span style="color:violet">Violet</span>
 +
:* <span style="color:#43C6DB">Turquoise</span>
 +
</div>
 +
<div class='clear'>&nbsp;</div>
 +
Other
 +
</div>

Revision as of 21:59, 22 March 2011



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|\frac{t}2-\mathrm round\left(\frac{t}2\right)\right|.
SetColor[ <Object>, "color" ]
Changes the color of given object. The color is entered as text. The command accepts more than hundred English color names (see Reference:Colors). Some of them can be also used in national languages and are listed below.
  • Gray
  • Aqua
  • Black
  • Blue
  • Green
  • Lime
  • Maroon
  • Purple
  • Red
  • Silver
  • White
  • Yellow
  • Brown
  • Crimson
  • Cyan
  • Dark Blue
  • Dark Gray
  • Light Gray
  • Gold
  • Magenta
  • Indigo
  • Pink
  • Orange
  • Violet
  • Turquoise
 

Other

© 2024 International GeoGebra Institute