drawBezierShape primitive failed

Markus Gälli gaelli at emergent.de
Mon Nov 25 10:20:06 UTC 2002


Hi Torsten,

literal arrays can only store literals, and as Points created
with @ are no literals (maybe we should change that???),
you have two choices:

Either create the array like

{10 at 10 . 10 at 50 . 50 at 50}

but beware, the curly brackets are "Squeak only"-syntax,
or use

Array
	with: 10 at 10
	with: 10 at 50
	with: 50 at 50

Hope this helps,

Markus

Am Montag, 25.11.02 um 07:46 Uhr schrieb Torsten Sadowski:

> Hi,
>
> while playing a bit with Balloon I got a primitive failed error on my 
> Mac.
> The offending code is:
>
> drawOn: aCanvas
> 	myCanvas_aCanvas asBalloonCanvas.
> 	myCanvas drawBezierShape: #(10 at 10 10 at 50 50 at 50) color: Color red
> 		borderWidth: 2 borderColor: Color blue.
> 	myCanvas line:10 at 10 to:50 at 50 width:2 color: Color red.
> 	^myCanvas
>
> The line works. Any idea whats wrong?
>
> Torsten
>
>




More information about the Squeak-dev mailing list