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 ~/ _font.charWidth, pixel.y ~/ _font.lineHeight);
Given a point in pixel coordinates, returns the coordinates of the character that contains that pixel.
@override
Vec pixelToChar(Vec pixel) =>
Vec(pixel.x ~/ _font.charWidth, pixel.y ~/ _font.lineHeight);