pixelToChar method
Vec
pixelToChar(
- Vec pixel
override
Given a point in pixel coordinates, returns the coordinates of the character that contains that pixel.
Implementation
Vec pixelToChar(Vec pixel) =>
Vec(pixel.x ~/ _charWidth, pixel.y ~/ _charHeight);