Devil may Cry
unread,Jan 3, 2013, 8:45:01 AM1/3/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to haskel...@googlegroups.com
I believe I have stumbled upon another bug. This time in polygon function.
Try drawing this:
star = polygon [ -- line [ works fine
(0,50),
(10,30), -- bug or feature? it reads point, but shows it incorrectly
(40,20),
(20,0),
(30,-30),
(0,-10),
(-30,-30),
(-20,0),
(-40,20),
(-10,20)
-- (0,50)
]
It's easiest to spot if you add point by point:
translate 0 (-100) $ color red $ line my_star,
translate 0 (100) $ color blue $ polygon my_star
]
my_star = [
(0,50),
-- (10,30),
-- (40,20), -- line is ok, but polygon creates triangle surface, disregarding next points
--(20,0)
]