The pallets and the brush's code are from my other drawing game link is down below
https://scratch.mit.edu/projects/449087304 where my game is blue line it and then click "search web for" and you should find it