Simple Drawing
/**
* Copyright mathatelle ( http://wonderfl.net/user/mathatelle )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/8UHK
*/
package {
import frocessing.display.*;
public class Main extends F5MovieClip2DBmp {
public function setup():void {
background(204);
//noStroke();
fill(0);
}
public function draw():void {
if (isMousePressed == true) {
//ellipse(mouseX, mouseY, 20, 20);
line(mouseX, mouseY, pmouseX, pmouseY);
}
}
public function keyPressed():void {
background(204);
}
}
}