I coded this to show off how cool colour pickers are and believe it or not it takes more code than you'd think. Press Space to pick the colour your cursor is over. After you pick your colour you can draw with it in the "Draw Here" section. Press the Green Flag to erase everything.
Thanks to griffpatch for the awesome tutorial on how to make a Colour Picker! Check him out here: https://scratch.mit.edu/users/griffpatch/