Hi, On Tue, Jul 31, 2007 at 20:30:51 +0100, Daniel J Birkinshaw wrote: > I'm confused about how drawPolygon works; or rather in my case > doesn't. I can draw a triangle (Polygon [pt 50 175, pt 100 0, pt 0 0]) > but the points have to be in that exact order or it won't work.
No comment on the order of the points (I don't know this stuff too well). Is this related to wxWidgets perhaps? Maybe it's the underlying functionality that wants it that way. > Furthermore if I try to translate all the points by, for example, > 10i+10j when I draw it not all the points have been translated. See > here for what I mean: http://omploader.org/vMTdu with the code listing > here if you want it: http://hpaste.org/1998 Could you check with the darcs version of wxhaskell? I recall something like this having been fixed. Plus, here's what it looks like on my end (the colours are weird because of a bug (maybe) on MacOS X; and there are two triangles because I added before and after code). You might encounter some pain installing the new wxhaskell, in that now you need a version of wxWidgets with Unicode _enabled_, and not 2.8 either, as wxhaskell does not seem ready for it yet. -- Eric Kow http://www.loria.fr/~kow PGP Key ID: 08AC04F9 Merci de corriger mon français.
<<attachment: two-triangles.png>>
pgpeNipbjetkm.pgp
Description: PGP signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users