Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function setup() {
- createCanvas(600,600);
- }
- function draw() {
- stroke(0,0,0);
- strokeWeight(1);
- fill(0,0,0);
- rect(550,50,40,40);
- if (mouseIsPressed) {
- stroke(255,0,0);
- strokeWeight(20);
- line(pmouseX, pmouseY, mouseX, mouseY);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement