[Squeakland] pen trail as object (in OLPC)

Randy Heiland heiland at indiana.edu
Sun Sep 9 03:32:34 PDT 2007


Replying to my own post, I did finally discover that I could use the  =

'fill & border' category of my Line/Circle-constructed polygon object  =

to increase its "pen size" (borderWidth) and color (borderColor).   =

However, it really is a different type of object than one created via  =

painting, isn't it?  E.g., in my case, I created a closed polygon and  =

then would have liked to "fill" it using the paint bucket in the  =

paint palette, however, their is no Repaint handle for my constructed  =

polygonal object.  Neither does the Line's color tile in the fill &  =

border "fill in" my closed polygon.  Perhaps for the project I had in  =

mind, I'm better off returning to the original suggestion of normal  =

painting with the trick of "erase pixels of color".

-Randy


On Sep 8, 2007, at 7:49 PM, Randy Heiland wrote:

> Thank you once again for your reply, Pierre-Andre.  You helped  =

> provide details of what Alan had earlier suggested, I think.  I  =

> must admit I still find it a bit confusing.  I basically repeated  =

> your project - using a Line and Circle from the Graphics category  =

> of the Objects Catalog.  However, I could never change the pen size  =

> of the drawn polygon.  Is it not possible using this approach?   =

> Similarly, I tried to change the color - both the penColor (pen use  =

> category) and in the color category, but could not.
>
> -Randy
>
> On Sep 8, 2007, at 5:37 PM, Dreyfuss Pierre-Andr=E9 (EDU) wrote:
>
>>
>> There is an other solution.
>> Use a lineMorph instead of penTrail.
>>
>>
>> Get object catalog from box flap.
>> Get a line in category graphics.
>>
>> get an ellipse
>>
>> The line has a category polygon in the script viewer
>> You'll find there all you need for creating a new vertex, putting  =

>> it at the position of the ellipse.
>> move the ellipse and create a new vertex, put it at the position  =

>> of the ellipse ... and so on
>>  The line is the wanted object and has the wanted shape !
>>
>> Here are the scripts  for getting a circle.
>>
>>
>> Player118 -- 1 instance, nomm=E9 Ligne
>> Player119 -- 1 instance, nomm=E9 Ellipse
>>
>>
>> --------------------------------------------------------------------- =

>> -----------------------
>> Ligne. scripts :
>>
>> Ligne.newposition
>> 	self appendVertex.
>> 	self setVertexCursor: self getVerticesCount.
>> 	self setXAtCursor: Ellipse getX.
>> 	self setYAtCursor: Ellipse getY
>>
>> Ligne.init
>> 	self removeAllButCursor.
>> 	self setXAtCursor: Ellipse getX.
>> 	self setYAtCursor: Ellipse getY
>> --------------------------------------------------------------------- =

>> -----------------------
>> Ellipse. scripts :
>>
>> Ellipse.script1
>> 	self forward: 5.
>> 	self turn: 5.
>> 	Ligne newposition
>>
>>
>> Download the project:
>> http://ofset.org:8000/super/uploads/lineTrack.002.pr
>>
>> Regards.
>>
>>
>>
>> -------- Message d'origine--------
>> De: squeakland-bounces at squeakland.org de la part de Randy Heiland
>> Date: jeu. 06/09/2007 02:06
>> =C0: Squeakland list
>> Objet : [Squeakland] pen trail as object (in OLPC)
>>
>> I was revisiting this issue - wanting to have my drawn pen trail
>> become an object, and I dug up this post:
>> http://article.gmane.org/ =

>> gmane.comp.lang.smalltalk.squeak.squeakland/869
>>
>> Are these directions still basically true for the OLPC etoys, i.e. do
>> I need to resort to writing a textual script?
>>
>> thanks, Randy
>>
>>
>>
>
> _______________________________________________
> Squeakland mailing list
> Squeakland at squeakland.org
> http://squeakland.org/mailman/listinfo/squeakland

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://squeakland.org/pipermail/squeakland/attachments/20070909/c7cb79=
fb/attachment.htm


More information about the Squeakland mailing list