Skip to content

p5 Brush Assignment: Code Review#1

Open
aaga wants to merge 2 commits intoteachingteamfrom
main
Open

p5 Brush Assignment: Code Review#1
aaga wants to merge 2 commits intoteachingteamfrom
main

Conversation

@aaga
Copy link
Copy Markdown
Collaborator

@aaga aaga commented Jul 7, 2021

Nice brush! see comments below

Copy link
Copy Markdown
Collaborator Author

@aaga aaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice brush with a cool background image feature. good variable names; could use a little bit more commenting to explain some parts of the code. Overall, great job!

Comment thread assets/lyrics.txt
Heat, heat waves, I'm swimmin' in a mirror
Road shimmer wigglin' the vision
Heat, heat waves, I'm swimmin' in a—
(Moo, moo, moo, moo, moo, moo, moo, mooooo)
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol

Comment thread script.js
@@ -1,11 +1,66 @@
// let lyrics;
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can remove commented code when you're no longer using it!

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just keeps things a bit tidy

Comment thread script.js
stroke_color = color('pink');
fill_color = color('black');

linesList.forEach((line) => {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good use of the arrow function

Comment thread script.js
function draw() {
}

let fill_color = backgroundImg.get(mouseX, mouseY);
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very cool feature!!!

Comment thread script.js
let linesList = [];
let wordsList = [];
let stroke_color;
let fill_color;
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need fill_color here since you recalculate every frame in the draw function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants