There is no way to check a pixels color, there is a getpixel example on the forums, but you can't do this without creating an array. To put a pixel, you use the function putpixel.
- Code: Select all
putpixel(x,y);
To draw a line, use lineto. It will draw a line from the current position (the pen) to the specified (x,y).
- Code: Select all
lineto(x,y);
To move where the pen of the actor is, use moveto.
- Code: Select all
moveto(x,y);
To set the color of the pixel, or the line, use setpen.
- Code: Select all
setpen(r,g,b,transparency,size);