Sun Burst

선버스트

Radial rays extend from a center point and can rotate over time.

Also known as: SunBurst방사형 광선

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, SunBurst } from 'shaders/react'

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

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

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

export default function ShaderEffect() {
  return (
    <Shader style={{ width: '100%', height: '320px' }} disableTelemetry>
      <SunBurst />
    </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: 'SunBurst',
    }
  ]
}, { disableTelemetry: true })

Props · SunBurst

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

NameValueDefaultRange / optionsDescription
colorColor#ffdd88—Ray color
backgroundBackground#000000—Background color
centerCenter
x0.5y0.5
{"x":0.5,"y":0.5}x, y: 0 – 1Center point of the sunburst
rayCountRay Count123 – 64 (step 1)Number of rays
softnessSoftness0.30 – 1 (step 0.01)Softness of ray edges
radiusRadius0.80 – 1.2 (step 0.01)How far the rays extend from the center
featherFeather0.50 – 5 (step 0.01)How gradually the rays fade at their outer edge
speedSpeed0.2-2 – 2 (step 0.1)Rotation speed — positive values rotate clockwise

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

Like a paper sunburst or stage lighting, rays spread out from one point. The clear center creates a strong focal point on the canvas.

Move the origin with `center`, and increase `rayCount` to show more rays. `radius` changes how far the rays extend, while `feather` changes how gradually they fade at the outer edge. `speed` controls the rotation.

The pattern draws its own background and needs no input layer. `speed` defaults to 0.2. Strong rays can appear before a heading or button, so reduce the color contrast and ray count behind key content.

When to use

Use it for an event or promotion focal background, a brief accent behind a heading, or radial graphics. Avoid it when the rays would be more noticeable than small text or primary buttons.

Open as page ↗