Skip to Content
✨ SPARK Membership
Learning
New to Coding? START HERE
Coding Tutorials
Creative Coding Math
Newsletter
About
Patt Vira
Login Account
0
0
✨ SPARK Membership
Learning
New to Coding? START HERE
Coding Tutorials
Creative Coding Math
Newsletter
About
Patt Vira
Login Account
0
0
✨ SPARK Membership
Folder: Learning
Back
New to Coding? START HERE
Coding Tutorials
Creative Coding Math
Newsletter
About
Login Account

Color Changing Ball (If Statements)

  • All,

🔗 Code Example: Color Changing Ball

🔗 Timestamps:

  • 0:24 Approach

  • 0:34 Drawing ball and lines

  • 2:39 Moving ball

  • 2:58 Using conditional statements to color ball

🔗 References:

  • Variable - Creative Coding with p5.js

  • Conditionals (Boolean Expression) - Creative Coding with p5.js

  • Conditionals (If, Else If, Else) - Creative Coding with p5.js

Previous

Multiple Circles w For Loop

Next

Bouncing Ball

You Might Also Like

Related Embedded Video Item Thumbnail Rotating Type
Related Embedded Video Item Thumbnail Rotating Arcs Animation (Arc Function)
Related Embedded Video Item Thumbnail Magnifying Glass
Related Embedded Video Item Thumbnail Fireworks
Related Embedded Video Item Thumbnail Intro to OpenType.js
I recently visited a botanical garden, saw this very sign, and really wanted to share.

🌸 ‘To Plant a Garden is to Believe in Tomorrow’ beautifully resonates with the creative coding work I do. Just as planting a seed is a simple act wit
“It’s much easier to determine what is working after you have already done some things than to predict what will work before you have done anything.” — James Clear

I made it through year ONE of making consistent content on th
Follow @pattvira