You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both flip-vertical and flip-horizontal screw up the bounding box handling. Apparently after a flip everything inside the bounding box is considered part of the image, not just the drawn part. Unlike DrRacket and non-flipped WeScheme images.
Sample code (first line for DrRacket only):
(require 2htdp/image)
(define good (triangle 100 "solid" "orange"))
(define bad (flip-horizontal (triangle 100 "solid" "blue")))
(beside good bad)
(beside/align "bottom"
(frame (rotate 60 good))
(frame (rotate 60 bad)))
Results from DrRacket 8.9 CS, as expected:
Results from WeScheme.org today:
The whitespace around the blue triangle ("bad") is expanded, presumably including the space outside of the triangle in the figure.
The text was updated successfully, but these errors were encountered:
Both
flip-vertical
andflip-horizontal
screw up the bounding box handling. Apparently after a flip everything inside the bounding box is considered part of the image, not just the drawn part. Unlike DrRacket and non-flipped WeScheme images.Sample code (first line for DrRacket only):
Results from DrRacket 8.9 CS, as expected:
Results from WeScheme.org today:
The whitespace around the blue triangle ("bad") is expanded, presumably including the space outside of the triangle in the figure.
The text was updated successfully, but these errors were encountered: