How do I enable and disable the paint color with a button?

I'm trying to make a photo editing app that allows me to implement shapes and draw on the shapes but I want to be able to move the shapes without the pen being dragged around the canvas.

Show please your current blocks.

Not enough information for one year, closing