Really enjoying the Google Holidays animation:
It might be possible to replicate it, or something like it, using Geogebra.
* * *
Gemini:
Geogebra classic; how could I go about animating the opacity of my circle?
In GeoGebra Classic, opacity is not directly keyframed on the Opacity slider in the Style bar—instead, you animate a numeric slider from 0 to 1 and use the SetFilling command in a script to update circle c's interior opacity as the slider moves. Note that SetFilling controls the interior fill opacity (currently 35% on c), while border visibility is controlled separately via line style or line opacity.
Create an Opacity Slider
Input bar
Click Input... at the bottom of the Algebra view and enter t = Slider(0, 1, 0.01).
Verification: A new variable t appears in the Algebra view and a slider t appears in the Graphics view with values from 0 to 1.
Attach SetFilling to On Update
Object Properties
Right-click slider t (or select t and open its Object Properties / Settings panel), go to the Scripting tab, select the On Update tab, and enter SetFilling(c, t).
Verification: Dragging slider t manually between 0 and 1 immediately changes the interior shading of circle c from transparent to fully opaque.
Start the Slider Animation
Graphics or Algebra view
Right-click slider t in the Graphics view or Algebra view and select Animation On.
Verification: Slider t moves automatically back and forth, and the interior opacity of circle c smoothly animates along with it.

No comments:
Post a Comment