Sets the color of a pixel in the raster.
Sample code:
// Creates an RGB raster of 1px*1px
var raster = new Raster(Color.TYPE_RGB,1,1);
// Changes the color of the first pixel to red
var redColor = new RGBColor(1,0,0);
raster.setPixel(0,0,redColor)
Parameters:- x: Number
- y: Number
- color: Color