-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
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:
http://eduwiki.info/Dramabotica/Escenarios http://eduwiki.info/Dramabotica/Dialogos
So, with dressing and dialogs, dramabotics, looks advancing in good shape.
Cheers,
Offray
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?
karl wrote:
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 like 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 formats images???
Aha! You mean Stephane Ducasse's book 'Squeak: Learn programming with robots'.
I found pages 69 and 70 with google books,
http://books.google.com/books?id=Zjp4t0qafZoC&pg=PA70&lpg=PA70&d...
So I downloaded BotsInc:
http://smallwiki.unibe.ch/botsinc/download/
Like you I am a newbie - but it seems the 'FRM' format of the turtle and spider image is the native Squeak 'Form' class:
http://www.oldenbuettel.de/squeak-doku/Graphics-Display%20Objects/Form.html
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. Karl _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners