Color opacity
import statements
Using bit shifting instead of basic math
Only showing rectangle if mode is drawing mode