Spiral

나선 패턴

A line coils outward from a center point in a moving spiral pattern.

Also known as: Spiral스파이럴

Moves in browsers that support WebGPU

This device could not render the demo — showing a still

React
// Renders only in browsers with WebGPU.
import { Shader, Spiral } from 'shaders/react'

export default function ShaderEffect() {
  return (
    <Shader style={{ width: '100%', height: 320 }} disableTelemetry>
      <Spiral />
    </Shader>
  )
}
Vue
<!-- Renders only in browsers with WebGPU. -->
<script setup lang="ts">
import { Shader, Spiral } from 'shaders/vue'
</script>

<template>
  <Shader style="width: 100%; height: 320px" :disable-telemetry="true">
    <Spiral/>
  </Shader>
</template>
Svelte
<!-- Renders only in browsers with WebGPU. -->
<script>
  import { Shader, Spiral } from 'shaders/svelte'
</script>

<Shader style="width: 100%; height: 320px" disableTelemetry>
  <Spiral />
</Shader>
Solid
// Renders only in browsers with WebGPU.
import { Shader, Spiral } from 'shaders/solid'

export default function ShaderEffect() {
  return (
    <Shader style={{ width: '100%', height: '320px' }} disableTelemetry>
      <Spiral />
    </Shader>
  )
}
JavaScript
// Renders only in browsers with WebGPU.
// expects <canvas id="canvas" style="width:100%;height:320px"></canvas> on the page
import { createShader } from 'shaders/js'

const shader = await createShader(document.getElementById("canvas"), {
  components: [
    {
      type: 'Spiral',
    }
  ]
}, { disableTelemetry: true })

Props · Spiral

Changes apply to the demo above and to the code tabs. Descriptions come from the library registry (MIT).

NameValueDefaultRange / optionsDescription
colorAColor A#000000—Background color
colorBColor B#ffffff—Spiral stroke color
strokeWidthStroke Width0.50 – 2 (step 0.1)Thickness of spiral stroke
strokeFalloffStroke Falloff00 – 1 (step 0.1)Stroke losing width further from center
softnessSoftness00 – 1 (step 0.1)Color transition sharpness (0 = hard edge, 1 = smooth fade)
speedSpeed1-3 – 3 (step 0.1)Animation speed (negative values reverse direction)
centerCenter
x0.5y0.5
{"x":0.5,"y":0.5}x, y: 0 – 1The center point of the spiral
scaleScale10.1 – 5 (step 0.1)Scale factor for spiral bands (higher = more bands, lower = fewer bands)
colorSpaceColor Spacelinearlinear · oklch · oklab · hsl · hsv · lchColor space for color interpolation

Every component also takes blendMode · opacity · visible · maskSource/maskType · boundingBox · id

Like a spinning top's trail or a shell, a line winds around a center and continues outward. Rotation gives it more movement than a still radial motif.

Move the spiral's origin with `center`; increase `scale` for more bands. `strokeWidth` changes the line thickness, and `strokeFalloff` controls how much it thins farther from the center. `speed` sets rotation speed; negative values reverse its direction.

`speed` defaults to 1, so the pattern starts in motion. This generator needs no input layer. Fast rotation holds attention, so keep it away from text; lower `speed` or set it to 0 for a calmer background.

When to use

Use it for a background that draws the eye toward a center, an abstract transition, or a short intro that needs rotation. Avoid fast motion where it could make reading uncomfortable or distract from the task.

Open as page ↗