brillo-1.13.3: Painless 2D vector graphics, animations, and simulations powered by GLFW
Safe HaskellSafe-Inferred
LanguageGHC2021

Brillo.Interface.Pure.Animate

Description

Display mode is for drawing a static picture.

Synopsis

Documentation

animate Source #

Arguments

:: Display

Display mode.

-> Color

Background color.

-> (Float -> Picture)

Function to produce the next frame of animation. It is passed the time in seconds since the program started.

-> IO () 

Open a new window and display the given animation.

Once the window is open you can use the same commands as with display.