Package: gsk

Function gsk:transform-parse

Lambda List

gsk:transform-parse (str)

Arguments

str -- a string to parse

Return Value

The gsk:transform instance with the transform matrix.

Details

Parses the given string into a transform matrix. Strings printed via the gsk:transform-to-string function can be read in again successfully using this function. If the str argument does not describe a valid transform matrix, false is returned.

Examples

(gsk:transform-parse "translate(1,2)")
=> #<GSK:TRANSFORM {100A325D83}>
(gsk:transform-to-translate *)
=> (1.0 2.0)
(gsk:transform-parse "translate(1,2) scale(3)")
=> #<GSK:TRANSFORM {100A327283}>
(gsk:transform-to-2d *)
=> (3.0 0.0 0.0 3.0 1.0 2.0)
(gsk:transform-parse "xxxx") => NIL    
 

See also

2024-4-21