Ali Imam

Sphere

Shaders 633

About

This appears to be a sophisticated dithering shader with various animated shapes and effects.

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

Code

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

Usage.tsx

import { DitheringShader } from "@/components/ui/dithering-shader";

export default function DemoOne() {
  return (
    <div className="relative flex h-full w-full flex-col items-center justify-center overflow-hidden">
       <DitheringShader 
              shape="sphere"
              type="random"
              colorBack="#000000"
              colorFront="#f43f5e"
              pxSize={2}
              speed={1.5}
            />
      <span className="pointer-events-none z-10 text-center text-7xl leading-none absolute text-white font-semibold tracking-tighter whitespace-pre-wrap">
        Sphere
      </span>
    </div>
  )
}