htdp-image-1.0.0.0: Beginner friendly graphics library.

Safe HaskellNone
LanguageHaskell2010

Graphics.Data.Image

Description

Image related utilities.

Synopsis

Documentation

data Image Source #

A 2D Image.

Constructors

Image 

Fields

Instances
Eq Image Source # 
Instance details

Defined in Graphics.Data.Image

Methods

(==) :: Image -> Image -> Bool #

(/=) :: Image -> Image -> Bool #

rotate Source #

Arguments

:: Float
deg
-> Image
i
-> Image 

Rotates i by deg degrees in a counter-clockwise direction. Unlike 2htdp/image's rotate function, this function is not smart enough to reduce the rotated image's binding box to fit the actual image. Instead, it just creates a new binding box so that i's binding box fits in it.