Package: gsk

Function gsk:transform-to-string

Lambda List

gsk:transform-to-string (transform)

Arguments

transform -- a gsk:transform instance

Return Value

The string for transform.

Details

Converts a tansform matrix into a string that is suitable for printing and can later be parsed with the gsk:transform-parse function.

Examples

(gsk:transform-to-string (gsk:transform-new)) => "none"
(graphene:with-point (p 1/2 2)
  (let ((transform (gsk:transform-translate (gsk:transform-new) p)))
    (gsk:transform-to-string transform)))
=> "translate(0.5, 2)"
(gsk:transform-to-string (gsk:transform-parse "translate(1,2)"))
=> "translate(1, 2)"    
 

See also

2024-4-21