Uploaded December 2022 | Updated November 2026, 3 hours ago
This Processing art tutorial shows how to create rectangles with rounded corners and a gradient of hues nested in a for() loop. Additionally, the tutorial uses basic trigonometric functions for motion to change the radius of the corners and colors of the rectangles. This Processing tutorial makes use of basic sin/cos trigonometric functions to control the for() loop, rounded rectangles and HSB colorMode.
0:00 Introduction
0:34 Start coding of rectangles in a for() loop
1:02 Changing of the colorMode to HSB
1:24 Rounded rectangles (with mouse)
2:52 Let's design a little bit...
3:25 Adding motion with sin and cos
3:42 Growth effect with modulo (%)
4:07 Outro (and lerp() for smooth transitions)
This tutorial art video is part of the series on "How to draw with code": youtube.com/playlist?list=PLbLdd1fdNg5zPBMYYZLO2JVqMrBkK5Lux
Tools: Made with code / Processing
Audio: Trancer by Gunnar Olsen (YouTube library)
----
▌ Generative art and design
▌ Made with code (Processing) and AxiDraw/iDraw
▌ LIKE and SUBSCRIBE to thedotisblack
*****SUPPORT thedotisblack*****
PATREON: patreon.com/thedotisblack
YT MEMBER: youtube.com/channel/UCX4GSh1gpRuugPpjxu0gLmw/join
BUY PRINTS: society6.com/davidmrugala?curator=davidmrugala
BUY NFTS: opensea.io/thedotisblack
*****SOCIAL MEDIA*****
Tumblr: thedotisblack.tumblr.com
Instagram: instagram.com/thedotiswhite
Facebook: facebook.com/thedotisblack
Twitter: twitter.com/davidmrugala
Ello: ello.co/thedotisblack
#Processing #CreativeCoding #artdrawing
This Processing art tutorial shows how to create rectangles with rounded corners and a gradient of hues nested in a for() loop. Additionally, the tutorial uses basic trigonometric functions for motion to change the radius of the corners and colors of the rectangles. This Processing tutorial makes use of basic sin/cos trigonometric functions to control the for() loop, rounded rectangles and HSB colorMode.
0:00 Introduction
0:34 Start coding of rectangles in a for() loop
1:02 Changing of the colorMode to HSB
1:24 Rounded rectangles (with mouse)
2:52 Let's design a little bit...
3:25 Adding motion with sin and cos
3:42 Growth effect with modulo (%)
4:07 Outro (and lerp() for smooth transitions)
This tutorial art video is part of the series on "How to draw with code": youtube.com/playlist?list=PLbLdd1fdNg5zPBMYYZLO2JVqMrBkK5Lux
Tools: Made with code / Processing
Audio: Trancer by Gunnar Olsen (YouTube library)
----
▌ Generative art and design
▌ Made with code (Processing) and AxiDraw/iDraw
▌ LIKE and SUBSCRIBE to thedotisblack
*****SUPPORT thedotisblack*****
PATREON: patreon.com/thedotisblack
YT MEMBER: youtube.com/channel/UCX4GSh1gpRuugPpjxu0gLmw/join
BUY PRINTS: society6.com/davidmrugala?curator=davidmrugala
BUY NFTS: opensea.io/thedotisblack
*****SOCIAL MEDIA*****
Tumblr: thedotisblack.tumblr.com
Instagram: instagram.com/thedotiswhite
Facebook: facebook.com/thedotisblack
Twitter: twitter.com/davidmrugala
Ello: ello.co/thedotisblack
#Processing #CreativeCoding #artdrawing










