by pixelpoop » Sun Mar 18, 2007 5:35 pm
if they aren't a part of ge then why do I find this in the ge documentation.
lineto: Draw a line on Event Actor to (x, y) coordinates using actual pen
void lineto(int x, int y)
Script Editor Syntax:
setpen(255,255,255,0,3);
lineto (50,50);
Example:
if (draw == 1)
{
screen_to_actor(&xmouse, &ymouse); //mouse coordinates from screen to actor coordinates
lineto(xmouse, ymouse); //draw a line to the mouse coordinates
}
putpixel: Draw a single pixel on Event Actor in (x, y) coordinates using actual pen.
void putpixel(int x, int y)