I did exactly the same as a kid, only I didn't have a mac. But my parents bought me some kind of German learning program (Addi?). It had a card painting mode with visually programmable events exactly as you describe - must have been a Hypercard clone then.