Rectangle Packing in a Perlin Flow Field - Part 1 of 2 - p5.js generative art
In this video, I go over the p5.js code for rectangle packing in a Perlin noise field. Includes how to do rectangle packing, rotating the pixels of a rectangle, and using Perlin noise to control the rotation. This is part 1 of 2. In part 2, I'll go over creating a center of rotation on the canvas, and also go more in depth on how I did the color.
The Code:
https://editor.p5js.org/StevesMakerspace/sketches/AWvuvS1VG
Video part two:
https://youtu.be/EMMRHmHt69Y
Rotate rectangle example code:
https://editor.p5js.org/StevesMakerspace/sketches/afXkFZtfR
Matthew Hughes on Twitter:
https://twitter.com/tasty_plots
Join my Discord: https://discord.gg/FSW6zzU
Follow me on Twitter: https://twitter.com/SteveMakerspace
Music:
Funk Down (Sting) by MK2 (theme)