setPositionNormalized method

  1. @override
void setPositionNormalized(
  1. num x,
  2. num y
)
override

Set the normalized coordinates of the pixel, in the range [0, 1].

Implementation

@override
void setPositionNormalized(num x, num y) =>
    setPosition((x * (width - 1)).floor(), (y * (height - 1)).floor());