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

Graphics.Gloss.ViewPort

Description

The ViewPort represents the global transformation applied to the displayed picture. When the user pans, zooms, or rotates the display then this changes the ViewPort.

Synopsis

Documentation

data ViewPort Source

Constructors

ViewPort 

Fields

viewPortTranslate :: (Float, Float)

Global translation.

viewPortRotate :: Float

Global rotation (in degrees).

viewPortScale :: Float

Global scaling (of both x and y coordinates).

viewPortInit :: ViewPortSource

The initial state of the viewport.