[Pharo-users] instantiate Sparta canvas?

David Richards david.i.richards.iii at gmail.com
Mon Feb 25 09:02:11 EST 2019

canvas := SpartaCanvas extent: 400 at 250

This fails even though the documentation says:

''I am an abstract class and should not be instantiated. However, the best
way to create an instance of sparta canvas is to send extent: message.''

!! Example:

Create an empty canvas of size 400 at 250:
canvas := SpartaCanvas extent: 400 at 250.

So, how do instantiate and display a Sparta canvas?

Where can I find good documentation about Sparta?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20190225/3d0ec61d/attachment.html>

More information about the Pharo-users mailing list