Posted By

S_Park on 08/04/10


Tagged

input mouse line draw


Versions (?)

Line Drawing


 / Published in: Processing
 

Draw line on mousedown

  1. void draw() {
  2. stroke(255);
  3. if(mousePressed) {
  4. line(mouseX, mouseY, pmouseX, pmouseY);
  5. }
  6. }

Report this snippet  

You need to login to post a comment.