[Squeakland] Pen Trails and Sensors

Ned Konz ned at bike-nomad.com
Fri Jul 4 09:27:33 PDT 2003


On Thursday 03 July 2003 07:20 pm, Jeff Longland wrote:
> I've been using
> penDown to create a pen trail behind the snake, but my major
> problem is that the sensor on my object is unable to view the pen
> trail.

Welcome Jeff!

Some context for the rest of the list: unless the Squeakland image has 
a fix that isn't in the Squeak 3.5 image, the turtle trails aren't 
visible in the color:sees: test.

One possibility is to make the turtle trails visible to the 
color:sees: test (and add a per-Project Preference for making them 
visible). Is there any interest in this?

Looking back in the Squeakland list, I see that Markus Denker recently 
posted a link to a project that includes an enhancement that Markus 
Gaelli wrote. This enhancement lets you make PolygonMorphs (like 
lines and filled polygons) from your scripts. So instead of using the 
penDown turtle features, you'd add points to a line that you were 
constructing. That would be visible to the color:sees: test.

I quote Markus D here:

----
> I was talking to Markus Gaelli abaout his PolygonFactory
> improvement, and then I realised that sending a Link
> to the squeak.org bugfix-archive is not the right thing to
> do on the squeakland mailinglist... that's something for
> the squeak.org hackers.
>
> So here's now a version that is actually usable:
>
> 
http://squeakland.org/project.jsp?http://www.ira.uka.de/~marcus/PolygonFactory.001.pr
>
> This is a project with Markus's new Polygon-drawing tiles and a
> very simple example.
>
>         Marcus
>
> On Fri, May 09, 2003 at 09:51:03AM +0200, Marcus Denker wrote:
> > On Thu, May 08, 2003 at 02:07:41PM -0800, Alan Kay wrote:
> > > However, it's also pretty clear that a more appropriate
> > > implementation would be to have them actually make an object of
> > > some kind (a SketchMorph or a PolygonMorph) that works like any
> > > other object. We will probably do something like this in a
> > > future version of etoys.
> >
> > Hi,
> >
> > Markus Gaelli posted something like that to the squeak-dev list
> > some days ago:
> >
> > http://swiki.gsug.org:8080/sqfixes/3240.html
> >
> > from preamble:
> >
> >  "Change Set:            PolygonFactory
> >  Date:                   20 April 2003
> >  Author:                 Markus Gaelli
> >
> >  Did you ever want to paint polygons out of the traces of your
> > EToy-cars?
> >
> >  Now it's possible.
> >  Just drop a polygon in the world, open a viewer on it, select
> > the category 'Miscellaneous'.
> >  Here you can select between two new options: -
> > setVertexFromPositionOf: dot
> >  With this one you can initialize your polygon to have only one
> > point, that is the current position of the player (replace 'dot'
> > with the tile of your player / car)
> >  - addVertexFromPositionOf: dot
> >  Use this one if you want to add a new point to your polygon,
> > which is the current position of the player (again replace 'dot'
> > with the tile of your player, probably somewhere after you just
> > moved it a bit...)

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE



More information about the Squeakland mailing list