[Newbies] A question of Squeak
Offray Vladimir Luna Cardenas
offray.luna at javeriana.edu.co
Sat Oct 27 19:59:59 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hi All and thanks Edgar, David and Karl for your answers,
The person who made the question is one of my students. I invited him to
ask here because I believe that becoming part of a community of practice
is the best way to learn (well was nice to know that this "intuition" is
deeply studied in the book Communities of Practice by Etienne Wenger).
With your help we finally found our way to make the Bots look like
anything we want. The idea is that we made the dress for the Bot in an
external program (inkscape, to have a freely scalable image), export to
png and after that this code make the conversion the work:
| unaForma prueba |
unaForma := ImageReadWriter formFromFileNamed: 'cactus.png'.
prueba := FileStream newFileNamed: 'cactus', '.frm'.
unaForma storeOn: prueba.
We are, as always, creating our organic memory in Eduwiki:
So, with dressing and dialogs, dramabotics, looks advancing in good shape.
Pdt: Is nice to know that Bots Inc is in Google Books. Do you know if
there is some organization which we can contact to support the
liberation of this book and, for example, made Spanish freely
distributable translations and even get some licensing scheme similar to
the excellent Squeak by example?
> David Corking wrote:
>> On 10/23/07, luisalejan1308 wrote:
>>> Hello!!!! If you remember I talked to you about the extension "Frm",
>>> Frm is
>>> the necessary extent to pass one imagen to squeak and only I found the
>>> extention of PNG, so that process is wrong. I want that a robot looks
>>> image that I import as FRM extention, but I used the all images on PNG
>>> extention. (Because the Squeak Book says that It needs a image in FRM
>>> Extention to use in the program with robots). How can I convert the
>> Aha! You mean Stephane Ducasse's book 'Squeak: Learn programming with
>> I found pages 69 and 70 with google books,
>> So I downloaded BotsInc:
>> Like you I am a newbie - but it seems the 'FRM' format of the turtle
>> and spider image is the native Squeak 'Form' class:
>> Unfortunately, I browsed that class, and I can't find a method for
>> converting PNG files into FRM format.
>> Perhaps there is a way to make a Bot wear a PNG graphic as a costume
>> (you can drag them into BotsInc easily, and they become a Sketch
>> Morph. The halo menu has a 'Keep as bot costume' entry ) But, I
>> don't have the whole Robots book, so I can't help any further. Sorry.
>> Instead, is there a paint tool in BotsInc for making new costumes?
> Once a png image is filed into Squeak it is a form.
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the Beginners