All Manuals > CAPI User Guide and Reference Manual > 22 GRAPHICS-PORTS Reference Entries

with-transformed-points Macro

Summary

Binds a list of transformed points in a port to a list across the execution of the macro's body.

Package

graphics-ports

Signature

with-transformed-points (points port) &body body => result

Arguments
points
A list of real numbers.
port
A graphics port.
body
A body of Lisp code.
Values
result
The return value of the last form executed in body.
Description

The macro with-transformed-points binds points to a new list of x and y values obtained by post-multiplying them by the current transform of port, and then evaluates the forms in body as am implicit progn. points must be bound to a list of alternating x and y values representing coordinate points in port.


CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:44