getImageColor function

Color getImageColor(
  1. Image image,
  2. int x,
  3. int y
)

Get image pixel color at (x, y) position.

Implementation

Color getImageColor(Image image, int x, int y) {
  return Color.fromRef(library.GetImageColor(image.ref, x, y));
}