Image.setPixel

From MiniScript Wiki
Revision as of 22:30, 1 April 2020 by 71.226.33.30 (talk) (Created page with "<c>Image.setPixel</c> sets the color of a specific pixel in the image. === Arguments === {| class="wikitable" |- ! Parameter Name !! Type !! Default Value !! Meaning |- | '...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Image.setPixel sets the color of a specific pixel in the image.

Arguments

Parameter Name Type Default Value Meaning
x number 0 horizontal coordinate of the pixel of interest, from 0 to width - 1
y number 0 vertical coordinate of the pixel of interest, from 0 to height - 1

Example

img = file.loadImage("/sys/pics/Dart.png")
		//	img.setPixel 5, 7, color.green