Hopefully this isn't double posted, I sent it in yesterday, but I wasn't a list member and it was pending approval. I figured I should join the list anyway, so without further ado here is my question.
---------- Forwarded message ----------
From:
Jeff Gonis <[hidden email]>Date: Mon, Dec 21, 2009 at 5:20 PM
Subject: Anti-aliasing canvas graphics
To:
[hidden email]Hi everyone,
I am executing the following code in the drawOn: method of a morph I am experimenting with as a canvas for some possible turtle graphics experiments:
super drawOn: aCanvas.
(aCanvas respondsTo: #asBalloonCanvas)
ifTrue: [| bc |
bc := aCanvas asBalloonCanvas.
bc aaLevel: 4.
bc
line: (self bounds topLeft translateBy: 3 @ 3)
to: (self bounds bottomRight translateBy: -4 @ -4)
width: 3
color: Color red]
This gives me the look I want, except for the fact that the line isn't really anti-aliased. I have attached a screen shot of what the line looks like in the morph. I am wondering how I can go about getting a better looking line with less noticeable aliasing when I draw.
Thanks for your help,
Jeff G.
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners