TL;DR

A programmer shifts from solving traditional coding problems to creating a dynamic, living animation using p5.js and basic trigonometry. The result is an evolving, colorful organism that challenges the notion of what constitutes rewarding code work.

What happened

The author deviates from conventional programming tasks to experiment with generative art in p5.js. Using trigonometric functions, the project generates thousands of points per frame, resulting in a visually stunning and dynamic animation.

Why it matters for ops

Generative art leverages mathematical principles to create living forms on digital canvases. This approach showcases the creativity and beauty possible through code, offering an alternative perspective to traditional software challenges like algorithmic problem-solving.

Action items

  • Experiment with p5.js for creating generative animations
  • Adjust wave frequencies and time variables to discover new visual effects
  • Explore HSB color mode for dynamic and evolving visuals

Source link

https://dev.to/vinay_kumardaggupati_c4d/when-math-becomes-alive-creating-a-beautiful-canvas-animation-with-p5js-5bod