dyoo/whalesong — Issue #66: image library bug
Author: dyoo
Created: 2011-11-21 20:42:46+00:00
State: open

Mentioned by emmanuel:

To reproduce
(add-line (rectangle 100 100 "solid" "red") 0 0 40 100 "black")

DrRacket correctly places the line on the lefthand side, WeScheme puts it in the middle. Guess why?

Location
https://github.com/dyoo/whalesong/blob/master/image/private/js-impl.js, line 768
> return makeOverlayImage(line, img, "middle", "middle");

Proposed Fix
Instead of passing in "middle", we should be using the values of x1 and y1.