Creative Coding 2.0 in JS: Animation, Sound, & Color
Adding Colors
A course by Bruno Imbrizi , Creative Coder
About the video: Adding Colors
Overview
“We are already randomizing positions and sizes, and we can also have random colors! In this lesson, I will show you how to add colors and work with predefined color palettes.”
In this video lesson Bruno Imbrizi addresses the topic: Adding Colors, which is part of the Domestika online course: Creative Coding 2.0 in JS: Animation, Sound, & Color. Explore advanced coding techniques to produce unique visuals that combine color, movement, and sound in JavaScript.
Partial transcription of the video
“We're already randomizing positions and sizes, and we can also have random colors. We're going to see how to do that in a structured way. We can start by adding color properties to the rect object. I'm declaring two new variables called fill and stroke. But now we can set fill to blue. And stroke to black. Then we destructure these properties. and set context.StrokeStyle to stroke. and duplicate the line. change it to fill style and set it to fill. Then after the call to context.Stroke, we call context. Strike. Phil. And now we have a bunch of blue skilled rectangles. We're randomizing the ...”
This transcript is automatically generated, so it may contain mistakes.
Course summary for: Creative Coding 2.0 in JS: Animation, Sound, & Color
-
Category
3D & Animation, Web & App Design -
Areas
JavaScript, Motion Graphics, Multimedia, Programming

Bruno Imbrizi
A course by Bruno Imbrizi
Bruno Imbrizi is a Brazilian-born creative coder based in London, England. He studied graphic design and began his career putting the skills and knowledge he’d learned into practice. Eventually, he combined his talent for design with another of his passions - coding.
With over 10 years of experience, he’s worked at agencies, design studios, production companies, and well-known brands including Dell, Adidas, and Universal Music. He’s been featured in online publications such as WIRED, and Londonist and won multiple awards including the Adobe Cutting Edge Award and FITC Best Digital Installation.
- 99% positive reviews (182)
- 20,444 students
- 28 lessons (2h 47m)
- 20 downloads
- Online and at your own pace
- Available on the app
- Audio: English, Spanish (Latam), French, Italian, Portuguese, Turkish
- Spanish · English · Portuguese · German · French · Italian · Polish · Dutch · Turkish · Romanian · Indonesian
- Level: Beginner
- Unlimited access forever
Category
Areas
