Difference between revisions of "Dynamic Colors"
From GeoGebra Manual
(Created page with '<noinclude>{{Manual Page}}{{PAGENAME}}</noinclude> {{objects|advanced}} In GeoGebra, you can change the color of objects using tab Color of the [[P...') |
(added v.4 - needs description) |
||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude> | + | <noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude> |
{{objects|advanced}} | {{objects|advanced}} | ||
In GeoGebra, you can change the color of objects using tab Color of the [[Properties Dialog]]. However, you can also have the color of an object change dynamically: Open the Properties Dialog for a certain object whose color you would like to change and click on tab Advanced. There you will find a section called Dynamic Colors with text boxes for the color components Red, Green, and Blue. | In GeoGebra, you can change the color of objects using tab Color of the [[Properties Dialog]]. However, you can also have the color of an object change dynamically: Open the Properties Dialog for a certain object whose color you would like to change and click on tab Advanced. There you will find a section called Dynamic Colors with text boxes for the color components Red, Green, and Blue. | ||
Line 10: | Line 10: | ||
* Close the Properties Dialog and change the values of the sliders in order to find out how each color component influences the resulting color of the polygon. | * Close the Properties Dialog and change the values of the sliders in order to find out how each color component influences the resulting color of the polygon. | ||
{{note|You could also animate the sliders with different speeds in order to see the color of the polygon change automatically.}}}} | {{note|You could also animate the sliders with different speeds in order to see the color of the polygon change automatically.}}}} | ||
+ | |||
+ | : '''RGB / HSV / HSL''' {{description}} |
Revision as of 10:51, 16 February 2011
In GeoGebra, you can change the color of objects using tab Color of the Properties Dialog. However, you can also have the color of an object change dynamically: Open the Properties Dialog for a certain object whose color you would like to change and click on tab Advanced. There you will find a section called Dynamic Colors with text boxes for the color components Red, Green, and Blue.
Note: In each of these text boxes, you can enter a function with range [0, 1].
Example:
- Create three slider a, b, and c with an interval from 0 to 1.
- Create a polygon whose color should be influenced by the slider values.
- Open the Properties Dialog for the polygon poly1 and enter the names of the three sliders into the text boxes for the color components.
- Close the Properties Dialog and change the values of the sliders in order to find out how each color component influences the resulting color of the polygon.
Note: You could also animate the sliders with different speeds in order to see the color of the polygon change automatically.
- RGB / HSV / HSL
Description of command / feature needed. Please enter it instead of this template into Manual:Dynamic Colors. so that it's included also to the public namespace. For more details see Project:HowTo