Circle + fbm Shader Art Using HTML, CSS, and JavaScript

Circle + fbm Shader Art Using HTML, CSS, and JavaScript

Circle + fbm Shader Art Using HTML, CSS, and JavaScript

Project: View on CodePen

Overview

This stunning animation is created using HTML, CSS, and JavaScript through the power of WebGL. It visualizes swirling patterns inside a circle using a technique called fractional Brownian motion (fbm), resulting in a smooth, evolving shader-based art piece.

Technology Used

  • HTML: Sets up the canvas container
  • CSS: Styles the layout and canvas
  • JavaScript: Controls time and passes it to the shader
  • GLSL Shader: Renders animated circular patterns using noise

Live Demo

Watch the animation in action below:

See the Pen Circle + fbm on CodePen.

Try It Yourself

  • Change the color gradients in the shader
  • Add interactive effects with mouse input
  • Animate based on audio input or scroll

Conclusion

This project highlights the creative possibilities of combining HTML, CSS, and JavaScript with WebGL and shaders. It's a great starting point for experimenting with real-time graphics directly in the browser.

Previous Post Next Post