Contents

setColor(_:atX:y:)

Changes the color of the pixel at the specified coordinates.

Declaration

func setColor(_ color: NSColor, atX x: Int, y: Int)

Parameters

  • color:

    A color object representing the color to be set.

  • x:

    The x-axis coordinate of the pixel.

  • y:

    The y-axis coordinate of the pixel.

See Also

Managing Pixel Values