Hmm. I normally decline to look at extensive code samples or
attached programs, but you made it very easy and I was curious. So I
ran your code, and indeed got bad jagged edges for the diamonds. I
thought I could just attribute this to low Display resolution (640 x
480 default), but got the same bad results at all other resolutions
(max 1680 x 1050 on my machine), working with either EP1 or EP2. So
it seems that the E-Basic Canvas.Polygon command simply does not do a
good job of anti-aliasing (see
http://en.wikipedia.org/wiki/Spatial_anti-aliasing for background information).
Instead, you should make image files for your diamond and other
shapes, then simply load those images to the Display as needed. This
has the advantage that you can use good software to prepare your
images and it will simplify your E-Basic code as you can simply
redraw the same image to different defined locations.
Come to think of this, using image files and Slides, you should be
able to do this with no E-Basic code at all (I should have thought of
this first, as this is the norma E-Prime way!). Just make a Slide
with SlideImage sub-objects to hold your square and diamond images,
then use attribute references from a List to assign the Position X &
Y properies for each of those sub-objects. Easy-peasy (as long as
you do not need too many diamond angles)!
-----
David McFarlane
E-Prime training
online:
http://psychology.msu.edu/Workshops_Courses/eprime.aspx
Twitter: @EPrimeMaster (
https://twitter.com/EPrimeMaster )
/----
Stock reminder: 1) I do not work for PST. 2) PST's trained staff
take any and all questions at
https://support.pstnet.com , and they
strive to respond to all requests in 24-48 hours, so make full use of
it. 3) In addition, PST offers several instructional videos on their
YouTube channel (
http://www.youtube.com/user/PSTNET ). 4) If you do
get an answer from PST staff, please extend the courtesy of posting
their reply back here for the sake of others.
\----