Shaders
header.lightDarkMode D
Gallery

Drifting Lights 3

Drifting Lights

A smooth, horizontally-oriented linear gradient shader that transitions from a vibrant lime green (#28f572) on the left and right edges to a teal cyan (#1db0a6) in the center. The gradient creates a symmetrical color flow moving from the outer edges toward the middle of the composition. The effect is enhanced by a subtle rectangular coordinate grid pattern that adds depth and structure to the gradient, creating a gentle wave-like visual rhythm. A fine film grain texture is overlaid at 30% strength, providing a subtle noise pattern that adds organic texture and prevents the gradient from appearing too smooth or artificial. The overall mood is fresh, modern, and calming, with the cool tones dominating the visual experience. The gradient animates smoothly with auto-rotation in loop mode, creating a continuous, mesmerizing effect. The color space uses OKLAB for smooth perceptual transitions between the green and cyan hues.

Code

vue
<script setup lang="ts">
import {
  Shader,
  FilmGrain,
  LinearGradient,
  RectangularCoordinates
} from 'shaders/vue'
</script>

<template>
  <Shader
    :disable-telemetry="true"
  >
    <LinearGradient :angle="{ mode: 'loop', type: 'auto-animate', speed: 1, easing: 'linear', outputMax: 360, outputMin: 0 }" color-a="#28f572" color-b="#1db0a6" color-space="oklab" />
    <RectangularCoordinates edges="stretch" :scale="3" />
    <FilmGrain :strength="0.3" />
  </Shader>
</template>