also elements to elems

main
Matthew Butterick 6 years ago
parent 6f7c8d8ee5
commit 0ad69eb4b4

@ -93,8 +93,8 @@
;; but we don't want this origin to be permanent on the parent.
;; akin to `push` a graphics state and then `pop` afterwards.
(let ([parent-q (struct-copy quad positioned-q
[origin (pt+ (quad-origin positioned-q) (quad-shift-elements positioned-q))]
[shift-elements (pt 0 0)])])
[origin (pt+ (quad-origin positioned-q) (quad-shift-elems positioned-q))]
[shift-elems (pt 0 0)])])
;; can't use for/list here because previous quads provide context for later ones
(let loop ([prev-elems null] [elems (quad-elems parent-q)])
(match elems

Loading…
Cancel
Save