Package: gsk

Function gsk:transform-to-2d-components

Lambda List

gsk:transform-to-2d-components (transform)

Arguments

transform -- a gsk:transform instance

Return Value

The (xskew yskew xscale yscale angle dx dy) list with single floats for the 2D transformation factors.

Details

Converts a gsk:transform instance to 2D transformation factors. The transform argument must be a 2D transformation. If you are not sure, use the gsk:transform-category function to check.

Since 4.6

Examples

Recreate an equivalent transform matrix from the factors returned by this function.
(graphene:with-point (p)
  (gsk:transform-skew
      (gsk:transform-scale
          (gsk:transform-rotate
              (gsk:transform-translate (gsk:transform-new)
                                       (graphene:point-init p dx dy))
              angle)
          xscale yscale)
      xskew yskew))    
 

See also

2024-4-21