Does anyone know how to get pen trails to write on top of an imported graphic (e.g. jpg)? Can it be done?
Randy Caton
-- Randall Caton Department of Physics, Computer Science and Engineering Christopher Newport University 1 University Place Newport News, VA 23606 Gosnold Hall 136 Voice: 757-594-7188 FAX: 757-594-7919 email: rcaton@pcs.cnu.edu web: www.pcs.cnu.edu/~rcaton/
Hi Randy,
The easiest way of doing this is to use a transparent playfield. E.g., get your image and put it on the screen (you may want to lock it so you don't touch it accidentally). Then get yourself a playfield and set its color to transparent. Position it to your needs (e.g., either so that it just covers the JPEG or so that it covers the screen) and that's it. Any pen trails drawn within the playfield will appear on top of the JPEG image.
Note that it is advantageous if you make the playfield the size of the project. Otherwise, you might get confused if you (accidentally or not) drop something outside of it as the pentrails will then again be hidden under the JPEG.
Hope this helps, - Andreas
-----Original Message----- From: squeakland-bounces@squeakland.org [mailto:squeakland-bounces@squeakland.org] On Behalf Of Randall Caton Sent: Thursday, May 08, 2003 2:44 AM To: squeakland@squeakland.org Subject: [Squeakland] pen trails
Does anyone know how to get pen trails to write on top of an imported graphic (e.g. jpg)? Can it be done?
Randy Caton
-- Randall Caton Department of Physics, Computer Science and Engineering Christopher Newport University 1 University Place Newport News, VA 23606 Gosnold Hall 136 Voice: 757-594-7188 FAX: 757-594-7919 email: rcaton@pcs.cnu.edu web: www.pcs.cnu.edu/~rcaton/
Squeakland mailing list Squeakland@squeakland.org http://squeakland.org/mailman/listinfo/squeakland
Hi Randy --
At 8:44 PM -0400 5/7/03, Randall Caton wrote:
Does anyone know how to get pen trails to write on top of an imported graphic (e.g. jpg)? Can it be done?
Yes (see Andreas' suggestion).
Interestingly, pen trails were originally on top in the first version of etoys, and I'm not sure just why they aren't now.
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.
Cheers,
Alan
Randy Caton
-- Randall Caton Department of Physics, Computer Science and Engineering Christopher Newport University 1 University Place Newport News, VA 23606 Gosnold Hall 136 Voice: 757-594-7188 FAX: 757-594-7919 email: rcaton@pcs.cnu.edu web: www.pcs.cnu.edu/~rcaton/
Squeakland mailing list Squeakland@squeakland.org http://squeakland.org/mailman/listinfo/squeakland
--
When the picture is used as a background pens will draw on top of it. Karl
Alan Kay wrote:
Hi Randy --
At 8:44 PM -0400 5/7/03, Randall Caton wrote:
Does anyone know how to get pen trails to write on top of an imported graphic (e.g. jpg)? Can it be done?
Yes (see Andreas' suggestion).
Interestingly, pen trails were originally on top in the first version of etoys, and I'm not sure just why they aren't now.
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.
Cheers,
Alan
Randy Caton
-- Randall Caton Department of Physics, Computer Science and Engineering Christopher Newport University 1 University Place Newport News, VA 23606 Gosnold Hall 136 Voice: 757-594-7188 FAX: 757-594-7919 email: rcaton@pcs.cnu.edu web: www.pcs.cnu.edu/~rcaton/
Squeakland mailing list Squeakland@squeakland.org http://squeakland.org/mailman/listinfo/squeakland
-- _______________________________________________ Squeakland mailing list Squeakland@squeakland.org http://squeakland.org/mailman/listinfo/squeakland
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...)
Hi Squeaklanders,
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/PolygonFacto...
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...)
-- Marcus Denker marcus@ira.uka.de -- Squeak! http://squeak.de
And how about getting pen trails to appear on a page in a book? I want to replicate a pattern of dots on multiple pages...then have kids figure out different ways of connecting the dots. I've got the scripting for generating the pattern of dots.
Phil Firsenbaum
On Wednesday, May 7, 2003, at 08:44 PM, Randall Caton wrote:
Does anyone know how to get pen trails to write on top of an imported graphic (e.g. jpg)? Can it be done?
Randy Caton
-- Randall Caton Department of Physics, Computer Science and Engineering Christopher Newport University 1 University Place Newport News, VA 23606 Gosnold Hall 136 Voice: 757-594-7188 FAX: 757-594-7919 email: rcaton@pcs.cnu.edu web: www.pcs.cnu.edu/~rcaton/
Squeakland mailing list Squeakland@squeakland.org http://squeakland.org/mailman/listinfo/squeakland
squeakland@lists.squeakfoundation.org