summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2018-04-11 10:40:08 +0200
committerRicardo Wurmus <rekado@elephly.net>2018-04-11 10:43:07 +0200
commitbfd6f267ef2235dd758ea5b5a02fa47d78b6b989 (patch)
tree8c03fef4e38b114fb1a693287b9320760c8d463f
parent860145884e4f883f01948579eee43e17b006924a (diff)
Add ghost.
-rw-r--r--pict.scm10
1 files changed, 10 insertions, 0 deletions
diff --git a/pict.scm b/pict.scm
index 63cd1d9..228aa1d 100644
--- a/pict.scm
+++ b/pict.scm
@@ -91,6 +91,7 @@
pin-over
pin-under
+ ghost
;; colors
rgb
@@ -415,6 +416,15 @@ strings that are built from the list of attributes LST."
#:border-color color
#:border-width stroke-width)))
+(define (ghost pict)
+ "Create an empty picture with the same size as PICT."
+ (make-pict
+ `(svg (@ (height ,(pict-height pict))
+ (width ,(pict-width pict))
+ (class "ghost")
+ (x 0)
+ (y 0)))))
+
;;; SVG graphics primitives.