Skip to content

Parameters, animation, stages, and GIF export

Animation lives in Eidolang rather than a separate canvas state. 2D, 3D, staged playback, and GIF export share one timeline, keeping screen playback aligned with exported frames.

Parameter sliders

txt
param r 1 range 0.5 4 step 0.1
circle c O radius r

Every param appears in Params. The figure reevaluates while dragging; release writes the value back to the command. Declare range for a useful complete slider interval.

Continuous animation

txt
animate r duration 2s mode pingpong

The target must be a parameter or a bound object with writable freedom. Options include:

  • mode loop, pingpong, or once;
  • speed or duration;
  • over t0 t1 for a restricted interval.

Status-bar Play/Pause controls preview. Stop commits current animated values to literals as an undoable edit.

Staged presentations

txt
stage givens duration 1.2s reveal fade
point A -3 0
point B 3 0
segment base A B

stage result duration 1.2s reveal draw
point M = midpoint(A, B)
hide base transition erase duration 0.6s
  • Objects before the first stage are persistent background.
  • reveal cut|fade|draw controls new objects.
  • clear hides earlier stage objects without deleting dependency values.
  • show/hide support cut, fade, draw/erase, and their own duration.

Staged scripts gain previous, play/pause, reset, next, and a full scrubber. Editing opens at the completed final state; Play from there restarts from stage one.

Export GIF

Open Export and select GIF:

  1. Choose Current view or Fit content; 2D also supports a custom rectangle.
  2. Decide whether to include the coordinate grid.
  3. Choose raster scale and frame rate. Defaults come from Settings › Export defaults.
  4. A staged script exports its stage timeline; ordinary animate exports one complete motion.
  5. 3D additionally offers camera orbit.

Duration comes from the script timeline. Eidograph caps the total frame count to protect memory and marks a capped export. Lower frame rate, stage/animation duration, or raster scale to reduce size.

Keep animation robust

  • Animate a parameter rather than a derived result.
  • Keep the construction valid across the full range; arc endpoints, for example, must not coincide.
  • Use moderate samples for numeric intersections and surfaces.
  • Play from start and check Diagnostics before export.
  • To keep a final pose, Stop to write current values, then save the project.