Package: cairo
Function cairo:path-data-to-list
Lambda Listcairo:path-data-to-list (path) ArgumentsReturn ValueThe list with the path. Details Creates a list with the path information from a cairo:path-t
instance. See the cairo:copy-path and cairo:copy-path-flat functions. NoteExample(cairo:with-recording-surface (surface :color) (cairo:with-context (context surface) (cairo:new-path context) (cairo:rectangle context 10 20 30 40) (let ((path (cairo:copy-path-flat context))) (prog1 (cairo:path-data-to-list path) (cairo:path-destroy path))))) => (:PATH (:MOVE-TO 10.0d0 20.0d0) (:LINE-TO 40.0d0 20.0d0) (:LINE-TO 40.0d0 60.0d0) (:LINE-TO 10.0d0 60.0d0) (:CLOSE-PATH) (:MOVE-TO 10.0d0 20.0d0)) | See also |
2024-2-3