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