Dynamic Colors

From GeoGebra Manual
Revision as of 19:01, 19 December 2010 by Zbynek (talk | contribs) (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...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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.
© 2024 International GeoGebra Institute