네온관

Neon

도형을 두꺼운 네온관처럼 밝히고 주변에 번지는 빛을 더합니다.

다른 이름: NeonNeon tubeNeon sign

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

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

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

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

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

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

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

속성(props) · Neon

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

이름값기본값범위·선택지설명(원문)
originOrigin코드에서 지정center—Reference edge the center position is measured from (center default). Lets you pin the shape relative to a corner or the canvas centre.
centerCenter
x0.5y0.5
{"x":0.5,"y":0.5}x, y: 0 – 1Center position of the neon shape
scaleScale10.1 – 3 (step 0.01)Scale of the neon shape (1 = default size)
rotationRotation00 – 360 (step 1)Rotation of the neon shape in degrees
colorTube Color#00ddff—Primary neon tube color
secondaryColorSecondary Color#ff00aa—Shadow-side color for a two-tone / dual-lit pipe look
secondaryBlendBlend0.50 – 1 (step 0.01)Blend between mono (0) and two-tone (1) tube coloring
glowColorGlow Color#00ddff—Color of the outer glow / bloom
tubeThicknessTube Thickness0.20 – 1 (step 0.01)How far inward from the boundary the tube extends. Low = thin neon outline, high = thick 3D pipe
intensityIntensity1.50.5 – 4 (step 0.01)Overall brightness multiplier
hotCoreIntensityHot Core0.60 – 1 (step 0.01)Bright white-hot center line — the gas discharge glow inside the tube
glowIntensityGlow Intensity0.60 – 2 (step 0.01)Outer glow / bloom strength
glowRadiusGlow Radius0.250.01 – 1 (step 0.01)How far the glow extends beyond the tube
lightAngleLight Angle3000 – 360 (step 1)Directional light angle in degrees — controls 3D shading on the tube
specularIntensitySpecular0.50 – 2 (step 0.01)Specular highlight brightness on the tube surface
specularSizeSpecular Size0.50 – 1 (step 0.01)Specular highlight size — 0 = tight pinpoint, 1 = broad sheen
cornerSmoothingCorner Smoothing0.150 – 1 (step 0.01)Rounds sharp corners to mimic how real glass tubes curve at bends
flickerSpeedSpeed00 – 5 (step 0.1)Flicker animation speed — 0 = off, higher = faster sporadic on/off
flickerAmountAmount0.20 – 1 (step 0.01)How often the neon flickers off — 0 = always on, 1 = frequent outages
flowSpeedSpeed00 – 5 (step 0.1)Flow animation speed — 0 = off, light rotates through the tube
flowAmountAmount0.30 – 1 (step 0.01)Strength of the flowing brightness variation — 0 = uniform, 1 = dramatic
shapeShape코드에서 지정{"type":"sphere3D","radius":0.35}—Serialized shape configuration (JSON)
shapeSdfUrlshapeSdfUrl코드에서 지정—URL to a pre-generated SDF .bin file — when non-empty, activates SVG mode and triggers a shader recompile
shapeTypeshapeType코드에서 지정—Active SDF shape type — triggers recompile when shape is switched. When empty, derived from shape JSON at mount time.

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

어두운 간판의 네온관처럼, 도형을 따라 선명한 빛줄기가 이어지고 주변으로 빛이 번집니다.

`color`는 네온관의 기본 색이고, `tubeThickness`를 높이면 얇은 윤곽선에서 두꺼운 관 모양으로 바뀝니다. `intensity`는 전체 밝기를, `glowIntensity`는 바깥으로 번지는 빛을 조절합니다. `flickerAmount`를 올리면 불이 꺼졌다 켜지는 일이 잦아집니다.

자체 도형을 만들며 어두운 배경과 조합하면 네온 색이 또렷합니다. 강한 빛 번짐은 주변 글자나 버튼 경계를 덮을 수 있으니 넓은 본문과 함께 쓰지 마세요.

언제 쓰나

네온 간판, 어두운 화면의 CTA 테두리, 로고 강조에 잘 맞습니다. 밝은 배경이나 작은 글자를 강한 빛으로 둘러싸야 하는 곳에는 피하세요.

페이지로 열기 ↗