Paint App's Sketch

public class Sketch extends PApplet { int BACKGROUND = color(255); int BLACK = color(0); int strokeColor; int strokeWidth; public void settings() { fullScreen(); } public void setup() { background(BACKGROUND); strokeColor = BLACK; strokeWidth = 5; stroke(strokeColor); strokeWeight(strokeWidth); } public void draw() { } public void mouseDragged() { line(mouseX, mouseY, pmouseX, pmouseY); } }
Insert this block of code into your Sketch class and run

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.