Skip to content

LightScript WorkshopMind-bending RGB effects

For the chronically creative

LightScript Workshop

🎨 What Can You Build?

LightScript Workshop ships with effects that push the boundaries:

EffectWhat It Does
🕳️ Black HoleGravitational lensing with accretion disk and Hawking radiation
💎 Voronoi FlowCellular patterns morphing with fluid dynamics
🌧️ Cyber DescentCyberpunk matrix rainfall with scanline artifacts
⚛️ Quantum FoamPlanck-scale virtual particles popping into existence
🎯 ADHD HyperfocusTunnel vision with dopamine-seeking sparkles

And you can create your own in minutes.

⚡ Quick Example

typescript
import { Effect, NumberControl, WebGLEffect, initializeEffect } from '@lightscript/core'
import fragmentShader from './fragment.glsl'

@Effect({ name: 'Neon Dreams', author: 'You' })
export class NeonDreams extends WebGLEffect<{ speed: number }> {
  @NumberControl({ label: 'Speed', min: 1, max: 10, default: 5 })
  speed!: number

  constructor() {
    super({ id: 'neon-dreams', name: 'Neon Dreams', fragmentShader })
  }

  protected initializeControls() { window.speed = 5 }
  protected getControlValues() { return { speed: window.speed ?? 5 } }
  protected createUniforms() { return { iSpeed: { value: 1.0 } } }
  protected updateUniforms(c) {
    if (this.material) this.material.uniforms.iSpeed.value = c.speed
  }
}

initializeEffect(() => new NeonDreams().initialize())

That's it. Drop this in src/effects/neon-dreams/main.ts with a GLSL shader and it's auto-discovered.

🤖 AI-Powered Development

LightScript is designed for AI collaboration. Try this prompt:

Create a WebGL effect called "aurora-waves" that simulates northern lights.
Add controls for speed (1-10), intensity (0-200), and a color palette dropdown.
Reference src/effects/black-hole/main.ts for the pattern.

Works with Claude, Cursor, Copilot — any AI that can read code.

▸ Ready?

Jump to Getting Started and have your first effect running in under 5 minutes.

Released under the MIT License.