Skip to content

Commit

Permalink
coments day 25
Browse files Browse the repository at this point in the history
  • Loading branch information
villares committed Jan 26, 2018
1 parent 1f4ad8b commit 3472e9c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sketch_180125c/sketch_180125c.pyde
Expand Up @@ -15,8 +15,10 @@ def setup():
def draw():
global pspeed
x, y, px, py = mouseX, mouseY, pmouseX, pmouseY
speed = (dist(x, y, px, py))**0.5 # squareroot of dist to previous mouse pos
w = ((10 - speed) + (10 - pspeed))/2 # mean of 10 minus speed & previous
# speed is the square root of distance to previous mouse position
speed = (dist(x, y, px, py))**0.5
# w is the mean of 10 minus speed & 10 minus previous speed
w = ((10 - speed) + (10 - pspeed))/2
strokeWeight(abs(w))
if mousePressed:
line(x, y, px, py)
Expand Down

0 comments on commit 3472e9c

Please sign in to comment.