Function Surface.getAt

Gets the pixel color in the dsdl2.Surface at the given coordinate

Color getAt (
  uint[2] xy
) @safe const;

Parameters

NameDescription
xy X and Y values of the coordinate

Returns

the pixel color