Dhileep Kumar GM

Pattern Shader

Shaders 12

About

This new shader will feature a rotating, repeating pattern of shapes, creating a kaleidoscopic, hypnotic effect. The colors will shift and evolve over time for a dynamic feel.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Pattern Shader to your project and fits it to your theme.

Code

How Pattern Shader is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import React from "react";
import PatternShader from "@/components/ui/pattern-shader";

const settings = {
  gridSpacing: 0.5,
  animationSpeed: 2,
  rotationSpeed: 0.1,
  paletteA: [0.5, 0.5, 0.5],
  paletteB: [0.5, 0.5, 0.5],
  paletteC: [1.0, 1.0, 0.5],
  paletteD: [0.8, 0.9, 0.3],
};

export default function DemoOne(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <div className="h-screen w-screen">
      {/* Procedural interference pattern */}
      <PatternShader
        gridSpacing={s.gridSpacing}
        animationSpeed={s.animationSpeed}
        rotationSpeed={s.rotationSpeed}
        paletteA={s.paletteA}
        paletteB={s.paletteB}
        paletteC={s.paletteC}
        paletteD={s.paletteD}
      />

      {/* Overlay content */}
      <div className="absolute inset-0 z-10 flex items-center justify-center pointer-events-none">
        <h1 className="text-6xl font-black text-foreground drop-shadow-lg">
          Pattern Shader
        </h1>
      </div>
    </div>
  );
}

More by Dhileep Kumar GM

View all
  • Aether Flow Hero

    Aether Flow Hero

    1.9K
  • Woven Light Hero

    Woven Light Hero

    1.5K
  • AnomalousMatterHero

    AnomalousMatterHero

    1.5K
  • PulseFit hero

    PulseFit hero

    922
  • Mountain Scene

    Mountain Scene

    859
  • HolographicCard

    HolographicCard

    820
  • 3D Animation

    3D Animation

    765
  • Cybernetic Bento Grid

    Cybernetic Bento Grid

    556

More in Shaders

View all
  • Glass Fold

    Glass Fold

    212
  • Neural Noise

    Neural Noise

    717
  • Wave

    Wave

    685
  • LightSpeed

    LightSpeed

    207
  • animated pattern cloud

    animated pattern cloud

    616
  • Background Shader

    Background Shader

    304
  • Shader Background

    Shader Background

    2K
  • Line Shader Homlu UI

    Line Shader Homlu UI

    48