Difference between revisions of "Dynamic Colors"
(added v.4 - needs description) |
m |
||
(11 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version= | + | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{objects|advanced}} |
− | {{objects|advanced}} | + | In GeoGebra, you can change the objects' colour using the ''Colour'' tab of the [[File:Menu-options.svg|link=|16px]] [[Properties Dialog]]. The colour of an object can also be set to change dynamically: open the [[File:Menu-options.svg|link=|16px]] ''Properties Dialog'' of the object whose colour you would like to define, then select the ''Advanced'' tab. The ''Dynamic Colours'' sections contains three input boxes which allow you to enter the main colour's components: ''Red'', ''Green'', and ''Blue''. |
− | In GeoGebra, you can change the | + | |
+ | {{Note|<div> | ||
+ | * The RGB values of the main colours are displayed to the right of the ''Preview'' box in the ''Colour'' tab of the [[File:Menu-options.svg|link=|16px]] ''Properties Dialog''. | ||
+ | * Dynamic colours can also be defined entering a function with range [0,1].</div>}} | ||
− | |||
{{Example| | {{Example| | ||
− | * Create three [[Slider Tool| | + | * Create three [[Slider Tool|sliders]] a, b, and c with an interval from 0 to 1. |
− | * Create a polygon whose | + | * Create a polygon, whose colour will be dynamically related to the sliders values. |
− | * Open the [[Properties Dialog | + | * Open the [[File:Menu-options.svg|link=|16px]] ''Properties Dialog'' for the polygon, then enter the names of the three sliders into the ''Red'', ''Green'' and ''Blue'' input boxes. |
− | * Close the Properties Dialog and change the values of the sliders in order to find out how each | + | * Close the [[File:Menu-options.svg|link=|16px]] ''Properties Dialog'' and change the values of the sliders in order to find out how each colour component influences the resulting colour of the polygon. |
− | {{note|You | + | {{note|You may also [[Animation|animate]] the sliders with different speeds, in order to see the colour of the polygon change automatically.}}}} |
+ | |||
+ | The ''Dynamic Colours'' section also contains an input box which allows you to change the ''Opacity'' of the selected object. You can enter a number ranging in [0,1] (where 0 means transparent, and 1 means 100% opaque), as well as a slider, in order to obtain a dynamic opacity. Other numbers will be ignored. | ||
+ | |||
− | + | === RGB / HSV / HSL === | |
+ | Some dynamic colouring patterns can be obtained using a different colour model. Besides the default [[w:RGB|RGB]], GeoGebra offers two more models, [[w:HSL_and_HSV|HSV]] and [[w:HSL_and_HSV|HSL]], that can be selected in the drop down list displayed at the bottom of the ''Dynamic Colours'' section of the ''Advanced'' tab of the [[File:Menu-options.svg|link=|16px]] ''Properties Dialog''. | ||
+ | {{example|1=To make a point ''A'' go through all the colours of the rainbow when moved left and right, switch to ''HSV'' mode, then set ''Saturation'' and ''Value'' to 1, and ''Hue'' to <code>x(A)</code>.}} |
Latest revision as of 10:28, 23 October 2015
In GeoGebra, you can change the objects' colour using the Colour tab of the Properties Dialog. The colour of an object can also be set to change dynamically: open the Properties Dialog of the object whose colour you would like to define, then select the Advanced tab. The Dynamic Colours sections contains three input boxes which allow you to enter the main colour's components: Red, Green, and Blue.
- The RGB values of the main colours are displayed to the right of the Preview box in the Colour tab of the Properties Dialog.
- Dynamic colours can also be defined entering a function with range [0,1].
- Create three sliders a, b, and c with an interval from 0 to 1.
- Create a polygon, whose colour will be dynamically related to the sliders values.
- Open the Properties Dialog for the polygon, then enter the names of the three sliders into the Red, Green and Blue input boxes.
- Close the Properties Dialog and change the values of the sliders in order to find out how each colour component influences the resulting colour of the polygon.
The Dynamic Colours section also contains an input box which allows you to change the Opacity of the selected object. You can enter a number ranging in [0,1] (where 0 means transparent, and 1 means 100% opaque), as well as a slider, in order to obtain a dynamic opacity. Other numbers will be ignored.
RGB / HSV / HSL
Some dynamic colouring patterns can be obtained using a different colour model. Besides the default RGB, GeoGebra offers two more models, HSV and HSL, that can be selected in the drop down list displayed at the bottom of the Dynamic Colours section of the Advanced tab of the Properties Dialog.
x(A)
.