Package: gsk

Function gsk:transform-perspective

Lambda List

gsk:transform-perspective (transform depth)

Arguments

transform -- a gsk:transform instance
depth -- a number coerced to a single float with the distance of the z=0 plane, lower values give a more flattened pyramid and therefore a more pronounced perspective effect

Return Value

The new gsk:transform instance.

Details

Applies a perspective projection transform. This transform scales points in x and y based on their z value, scaling points with positive z values away from the origin, and those with negative z values towards the origin. Points on the z=0 plane are unchanged.
 

See also

2024-4-21