does anyone know how to define an object as a button
either a shape or an image
I'm basically trying to create a a program like paint
I'm trying define a bunch of squares each a different colour
so when I press the green square I can paint a line
I can draw a line but I can only set the colour by changing the code
1