오로라

Aurora

밤하늘에 여러 겹의 오로라 커튼과 세로빛이 흐르고 흔들립니다.

다른 이름: AuroraNorthern lights

WebGPU 를 지원하는 브라우저에서 움직입니다

이 기기에서는 데모를 그리지 못해 정지 화면을 보여 줍니다

React
// WebGPU 를 지원하는 브라우저에서만 그립니다.
import { Shader, Aurora } from 'shaders/react'

export default function ShaderEffect() {
  return (
    <Shader style={{ width: '100%', height: 320 }} disableTelemetry>
      <Aurora />
    </Shader>
  )
}
Vue
<!-- WebGPU 를 지원하는 브라우저에서만 그립니다. -->
<script setup lang="ts">
import { Shader, Aurora } from 'shaders/vue'
</script>

<template>
  <Shader style="width: 100%; height: 320px" :disable-telemetry="true">
    <Aurora/>
  </Shader>
</template>
Svelte
<!-- WebGPU 를 지원하는 브라우저에서만 그립니다. -->
<script>
  import { Shader, Aurora } from 'shaders/svelte'
</script>

<Shader style="width: 100%; height: 320px" disableTelemetry>
  <Aurora />
</Shader>
Solid
// WebGPU 를 지원하는 브라우저에서만 그립니다.
import { Shader, Aurora } from 'shaders/solid'

export default function ShaderEffect() {
  return (
    <Shader style={{ width: '100%', height: '320px' }} disableTelemetry>
      <Aurora />
    </Shader>
  )
}
JavaScript
// WebGPU 를 지원하는 브라우저에서만 그립니다.
// <canvas id="canvas" style="width:100%;height:320px"></canvas> 가 페이지에 있어야 한다
import { createShader } from 'shaders/js'

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

속성(props) · Aurora

값을 바꾸면 위 데모와 코드 탭에 바로 반영됩니다. 설명은 라이브러리 레지스트리의 영어 원문(MIT)입니다.

이름값기본값범위·선택지설명(원문)
colorAColor A#a533f8—Edge color at the curtain base
colorBColor B#22ee88—Core color in the bright center
colorCColor C#1694e8—Tip color at the ray ends
colorSpaceColor Spacelinearlinear · oklch · oklab · hsl · hsv · lchColor space for color interpolation
balanceBalance500 – 100 (step 1)Shifts color distribution across the curtain height
intensityIntensity800 – 100 (step 1)Overall aurora brightness
curtainCountCurtains41 – 4 (step 1)Number of aurora curtain layers
speedSpeed5-10 – 10 (step 0.1)Animation speed
wavinessWaviness500 – 200 (step 1)How much the curtains undulate
rayDensityRay Detail200 – 100 (step 1)Density of vertical ray structures
heightHeight12010 – 200 (step 1)How tall the aurora extends
centerCenter
x0.5y0
{"x":0.5,"y":0}x, y: 0 – 1Center position of the aurora
seedSeed00 – 100 (step 1)Random seed for variation

모든 컴포넌트 공통: blendMode · opacity · visible · maskSource/maskType · boundingBox · id

밤하늘을 덮는 얇은 커튼처럼 빛이 여러 겹으로 흔들리고, 커튼 안에는 세로 결이 흐릅니다.

`colorA`, `colorB`, `colorC`는 커튼 아래·가운데·끝의 색을 정합니다. `curtainCount`를 1~4로 늘리면 커튼 겹이 많아지고, `waviness`를 0~200 안에서 높이면 굴곡이 커집니다. `rayDensity`는 세로빛의 밀도(0~100), `intensity`는 전체 밝기(0~100)를 바꿉니다.

오로라 자체를 그리는 배경 레이어라 입력 이미지는 필요하지 않습니다. 어두운 그라디언트 위에 두면 색이 잘 읽히고, 글이 올라간다면 `intensity`를 낮춰 대비를 남기세요.

언제 쓰나

밤하늘을 연상시키는 히어로 배경, 자연·우주 테마의 장식, 차분하게 움직이는 색면에 잘 맞습니다. 작은 글자가 많은 화면에서는 밝은 커튼이 내용을 가릴 수 있으니 피하세요.

페이지로 열기 ↗