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:
[ Ссылка ]
Video part two:
[ Ссылка ]
Rotate rectangle example code:
[ Ссылка ]
Matthew Hughes on Twitter:
[ Ссылка ]
Join my Discord: [ Ссылка ]
Follow me on Twitter: [ Ссылка ]
Music:
Funk Down (Sting) by MK2 (theme)
Ещё видео!