All Manuals > CAPI Reference Manual > 2 GP Reference Entries

NextPrevUpTopContentsIndex

with-graphics-rotation

Macro
Summary

Performs a call to apply-rotation with a given angle for the duration of the macro's body.

Package

graphics-ports

Signature

with-graphics-rotation ( port angle ) &body body => result

Arguments

port

A graphics port.

angle

A real number.

body

A body of Lisp code.

Values

result

The return value of the last form executed in body .

Description

The with-graphics-rotation macro performs a call to

(apply-rotation transform angle )

on the port's transform for the duration of the body of the macro.

angle is in radians. If angle is positive, then the rotation is clockwise.

Examples

examples/capi/graphics/catherine-wheel.lisp

See also

apply-rotation


CAPI Reference Manual - 15 Dec 2011

NextPrevUpTopContentsIndex