Way back in October, I was working on a stack for the Special Education student in my classroom. I got it to the point where he could work on it and I could adjust add things on as he improved.
Now he is leaving me and going into an all-day Special Ed class where he will be much happier. I am going to send along his program (I don't know how yet because rev media is no longer available and I am sure the Sp Ed dept won' buy Live Code, but one problem at a time), and so now I need to make the interface for the teacher completely easy, everything set up and set in stone, and the stack completely clean and bug free.
Here is problem #1: Instead of having the new teacher take a colored image and use PS to make a B&W copy and then make a White & Clear image for the "chalkboard," I would like to take the colored image and replace all the non-black pixels with white. I think I saw this somewhere, which is what gave me the idea, but I can't find it again.
But I think it would go something like this:
Look at the first pixel
If it is black, go to the next.
else, make it white and go to the next
continue until the entire image has been checked.
Does that make sense?
The potential problem I see is that these images need to be squishable and expandable to fit into already set Image box things, all of which are not the same size. This is how that is currently done at the beginning of the game. The three images are currently stored on a card named for the level that corresponds to the child's level. When the game is begun, this happens:
Code: Select all
--get and paste Chalk and Colored images to Game Card and Painting Card
put image "ChalkDrawing" of card PaintLevel into image "ChalkDrawing" of card "Game Card"
put image "ColoredDrawing" of card PaintLevel into image "ColoredDrawing" of card "Game Card"
hide image "ColoredDrawing"
put image "LineDrawing" of card PaintLevel into image "LineDrawing" of card "Painting Card"
If this works, I might be able to store the base images somehow as custom properties (not sure how to do that yet) which would save space.
Thank you all for your patience and time,
Bantymom
example image is attached