아이소메트릭 큐브 패턴

Isometric Cubes

마름모꼴 면을 반복해 입체 큐브처럼 보이는 타일 무늬를 만듭니다.

다른 이름: IsometricCubes아이소메트릭 큐브 타일

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

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

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

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

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

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

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

속성(props) · IsometricCubes

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

이름값기본값범위·선택지설명(원문)
colorAColor A#7c5cff—Base cube color
colorBColor B#ff5c9d—Second cube color, mixed in per-cube for variation
lineColorEdges#000000—Color of the cube edge lines
cellsCells61 – 30 (step 1)Number of cubes across the shortest canvas edge
thicknessThickness10 – 10 (step 0.1)Thickness of the cube edge lines (0 = no edges)
rotationRotation00 – 360 (step 1)Rotation of the tiling in degrees
softnessSoftness00 – 1 (step 0.01)Softness of the edge lines (0 = crisp, 1 = very soft)
colorVariationVariation10 – 1 (step 0.01)Per-cube random blend between the two colors (0 = uniform cubes, the clean 3D look)
colorSpaceColor Spacelinearlinear · oklch · oklab · hsl · hsv · lchColor space for color interpolation

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

게임 맵이나 아이소메트릭 일러스트의 바닥처럼 평면 위에 큐브가 쌓인 듯 보입니다. 실제 입체 모델 없이도 색이 나뉜 면과 테두리로 깊이감을 줍니다.

`cells`를 늘리면 큐브 타일이 작아집니다. 두 색은 큐브 면에 쓰입니다. `colorVariation`을 0으로 두면 색이 한결 고르게 보이고, 값을 높이면 타일마다 두 색이 더 달라집니다. `thickness`는 모서리 선을, `rotation`은 전체 타일의 방향을 바꿉니다.

이 타일 무늬는 입력 레이어 없이 캔버스를 채웁니다. 기본 `colorVariation`은 1이므로 큐브마다 색이 달라질 수 있습니다. 선과 면이 촘촘하면 글씨와 겹칠 수 있어 낮은 밀도나 낮은 대비로 배경에 쓰세요.

언제 쓰나

아이소메트릭 게임 지도, 제품·기술 일러스트, 입체감 있는 기하학 배경에 좋습니다. 작은 라벨이나 본문이 선과 면에 묻히는 화면은 피하세요.

페이지로 열기 ↗