pixelToChar method

  1. @override
Vec pixelToChar(
  1. Vec pixel
)
override

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);