Jim Burns wrote: > > >So load several images into several clipboards and map them to the > >turtle. > > > >SETBITINDEX n > >BITCOPY x y > >SETTURTLE n > >BITMAPTURTLE > > > >The "DEMO" does just this by drawing 8 numbers with LABEL on the screen > >and > >copying them off the screen into "bitmap buffers" mapping each number to > >8 > >different turtles. > > Yes, I've seen the demo. But using the very screen you are working on as a > temporary workspace is hardly optimum. It works in your demo because there > is nothing else of importance on screen and you are thus free to issue a CS > within your first repeat 8[ statement that is reponsible for getting the > numbers cut into the appropriate bitmap indices. > > >You cannot load an image directly from the disk into a turtle. > >But all the pieces are there to write simple procedure that loads > >an image off the disk directly to any turtle, if thats what your > >looking for. > > > >to loadturtle :filename :turtle > >end > > True. But when you load a bitmap with the BITLOAD command it does indeed > show the bitmap on screen where the current turtle is. At least, I've not > been able to do this differently. And, as I've said above, this is just > not optimum. What is needed is a method of mapping a bitmap onto a turtle > that doesn't involve destroying the current screen, or at the very least, > that doesn't involve the inefficiency of actually trying to load it by > displaying it first on screen and then cutting it away. > > Am I still missing a way to accomplish this? > Once you have the bitmaps in the buffers they don't ever have to go onto the screen again (you just map that turtle or unmap it). Load up the 1024 buffers up front. The "Disk" is the bottle neck not the screen (it's actually all in memory) but your just viewing that memory, the fact that it goes through the screen really is not a performace problem. You can also send images from one buffer to another using BITPASTETOINDEX. But the destination is expected to be initialized with a "host" bitmap. What your asking for is BITLOADTOINDEX I guess. > Many thanks for the feedback, > > -- Jim Burns > Technology Dynamics > Pearland, Texas > 281.485.7186 / 281.485.0410 > jimburns@technologydynamics.com > > "There is always a trade-off to letting the machine do all the work. It's > not always a good one!" -- =============================================================== George Mills (mills@softronix.com) http://www.softronix.com/ The www page contains some very powerful educational software. Our single most important investment is our kids. --------------------------------------------------------------- Please post messages to the Logo forum to logo-l@gsn.org. Mail questions about the list administration to logofdn@gsn.org. To unsubscribe send unsubscribe logo-l to majordomo@gsn.org.
Global SchoolNet Foundation -
Linking Kids Around the World!
Copyright GSN - All Rights Reserved
- Comments
& Questions
Visit GSN's
Global
Schoolhouse for more exciting learning resources!
Search our Site
-
Home