gloss-1.4.0.1: Painless 2D vector graphics, animations and simulations.

Graphics.Gloss.Interface.Animate

Description

Display mode is for drawing a static picture.

Synopsis

Documentation

animateInWindowSource

Arguments

:: String

Name of the window.

-> (Int, Int)

Initial size of the window, in pixels.

-> (Int, Int)

Initial position of the window, in pixels.

-> 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 displayInWindow.