8: Translate and Rotate in p5.js: How to Code Generative Art
Another video in the series on How to Code Generative Art using p5.js. In this video, we learn to rotate shapes, which requires us first to change the position of 0,0 to the spot where we want to rotate. This is called translating. # beginner's guide to coding, getting started generative art p5js.
The playlist: https://www.youtube.com/playlist?list=PLnJOmsprq3bE0QLbe7wZ8yb1-Dt0FBcP5
Large curve across canvas from previous video:
https://editor.p5js.org/StevesMakerspace/sketches/j1ZkwsKv2
Large curve rotated:
https://editor.p5js.org/StevesMakerspace/sketches/E523Om9Nx
Rotated lines in a circle example:
https://editor.p5js.org/StevesMakerspace/sketches/pAblOYTni
Flower example:
https://editor.p5js.org/StevesMakerspace/sketches/JTxuoPcwI
https://p5js.org/
Join my Discord: https://discord.gg/FSW6zzU
Follow me on Twitter: https://twitter.com/SteveMakerspace
Steve's Patreon page: https://www.patreon.com/steves_makerspace