Week 6
Part 1 : Refactor + Git
I chose a sketch I did an year ago! Before I came to ITP!
![]()

Part 2: Document + GitHub
Before
After
When I try to understand again this sketch, I found that
❶ the “targetX,Y ” seems not intuitive for me.
❷ I called thefill(); noStroke(); ellipse() several times.
❸ I filled the background by a rect 😆.
So what I
❶ renamed the variable to “currentMouse” and rewrite it in a clean way.
❷ added new function to draw circle!
❸ changed the background rect to background!
When I try to understand again this sketch, I found that
❶ the “targetX,Y ” seems not intuitive for me.
❷ I called thefill(); noStroke(); ellipse() several times.
❸ I filled the background by a rect 😆.
So what I
❶ renamed the variable to “currentMouse” and rewrite it in a clean way.
❷ added new function to draw circle!
❸ changed the background rect to background!
GitHub!
