pass canvas selector into Hex

make more modular, doesn't rely on external state :)