Adding Circular Flow to a Flow Field with Generative Artist Jeff Palmer - p5.js
In this video, generative artist Jeff Palmer shows me how to add circular flow to a flow field using signed distance function (SDF) and vectors in p5.js. It gets a bit complicated, but I break it all down and example code is below. Signed distance field.
Jeff Palmer's website, fxhash, and Twitter:
https://jpalmer.art/
https://www.fxhash.xyz/u/Jeff%20Palmer
https://twitter.com/jeffpalmer
My fxhash page with art using circular flow:
https://www.fxhash.xyz/u/Steve's%20Makerspace
Final code - flow fields with circular flow:
https://editor.p5js.org/StevesMakerspace/sketches/7kfrLBqy4
Color gradient code:
https://editor.p5js.org/StevesMakerspace/sketches/qmwxoH77v
Circular vectors with bound circle code:
https://editor.p5js.org/StevesMakerspace/sketches/ivMqXeoSI
Bound circle with line segments added:
https://editor.p5js.org/StevesMakerspace/sketches/7WwSRlmHJ
Multiple circles in flow:
https://editor.p5js.org/StevesMakerspace/sketches/IUl3niqBK
My video on Static Flow Fields:
https://youtu.be/R0OFyWEglGA
What is Signed Distance Function? by Ankit:
https://not-another-engineer.medium.com/what-is-signed-distance-function-818101f6fe3e
Vector Math video by the Coding Train:
https://youtu.be/Rob0pbE7kks
Join my Discord: https://discord.gg/FSW6zzU
Follow me on Twitter: https://twitter.com/SteveMakerspace
Music:
Funk Down (Sting) by MK2 (theme)