Difference between revisions of "SetBackgroundColor Command"

From GeoGebra Manual
Jump to: navigation, search
m (link to en_GB version)
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=4.0}}</noinclude>
 
<noinclude>{{Manual Page|version=4.0}}</noinclude>
{{command|scripting}}
+
{{command|scripting|US_version=SetBackgroundColor|non-US_version=SetBackgroundColour}}
 
;SetBackgroundColor[ <Object>, <Red>, <Green>, <Blue> ]
 
;SetBackgroundColor[ <Object>, <Red>, <Green>, <Blue> ]
 
:Changes the background color of given object. This is used for Texts and for objects in the Spreadsheet. 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 background color of given object. This is used for Texts and for objects in the Spreadsheet. 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>.
 
;SetBackgroundColor[ <Object>, "color" ]
 
;SetBackgroundColor[ <Object>, "color" ]
 
:Changes the background color of given object. This is used for Texts and for objects in the Spreadsheet. 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 background color of given object. This is used for Texts and for objects in the Spreadsheet. 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.
<div class="grid">
+
{{TableOfColors}}
<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;background-color:navy">Yellow</span>
 
:* <span style="color:brown">Brown</span>
 
:* <span style="color:#006400">Dark Green</span>
 
:* <span style="color:lightyellow;background-color:navy">Light Yellow</span>
 
:* <span style="color:#FFEFD5">Light Orange</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>
 
:* <span style="color:#E0B0FF">Light Violet</span>
 
:* <span style="color:#CCCCFF">Light Purple</span>
 
:* <span style="color:#D0F0C0">Light Green</span>
 
</div>
 
<div class='clear'>&nbsp;</div>
 
</div>
 

Revision as of 20:30, 27 July 2011


SetBackgroundColor[ <Object>, <Red>, <Green>, <Blue> ]
Changes the background color of given object. This is used for Texts and for objects in the Spreadsheet. 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|.
SetBackgroundColor[ <Object>, "color" ]
Changes the background color of given object. This is used for Texts and for objects in the Spreadsheet. 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