HSL / Hue Cycle
初出 1978 · Alvy Ray Smith — 循環的な色相回転は、アルヴィ・レイ・スミスが定式化した HSV/HSL 表色系(「Color Gamut Transform Pairs」、SIGGRAPH 1978)に依拠する。色・パレットのアニメーション循環は1980〜90年代のデモやゲームの定番だった。単一起源のない拡散的技法。 · 年表 ↗
コミュニティ・通称 名称 — 記述的命名。HSL 色空間(Alvy Ray Smith, 1978)で色相を回す技法の索引ラベル。命名された名ではない。
ひとことで 色相環 (HSL/HSV/Lab) を周期的に巡ることで虹色・グラデーションを生成する。Chromie Squiggle の彩色がこれに該当。
コード
上のデモの実際のスケッチ(サンドボックスで再現可能)。これで全部です。
hsl-cycle/index.html
const SEED = Math.floor(Math.random()*1e9);
function setup() {
randomSeed(SEED); noiseSeed(SEED);
const s = Math.min(windowWidth, windowHeight);
createCanvas(s, s);
colorMode(HSB, 360, 100, 100);
background(0, 0, 98);
noStroke();
// Chromie Squiggle inspired hue-cycle along a noise-perturbed path.
const SEGMENTS = 60;
const baseHue = random(360);
const hueSpan = random([180, 240, 320]);
const r = width * 0.05;
let x = width * 0.1;
let y = height * 0.5;
for (let i = 0; i < SEGMENTS; i++) {
const t = i / (SEGMENTS - 1);
const h = (baseHue + t * hueSpan) % 360;
fill(h, 80, 95);
circle(x, y, r * 2);
// Squiggle step: sine modulated by noise
const phase = noise(i * 0.18) * TWO_PI;
y += Math.sin(i * 0.5 + phase) * r * 0.55;
x += r * 1.2;
}
}仕組み
色相が角度 0–360° の円筒色空間(HSL/HSV)で作業する:(1) 色相をパラメータで駆動 — 例:n 要素で hue=(i/n)·360、キャンバス/時間に沿って (x+t)·k、彩度と明度は固定(または緩やかな曲線)、(2) 色相を 360 で巡回させ継ぎ目なくループ、範囲と速度で虹の周回数が決まる、(3) HSL→RGB に変換して描画。知覚均等空間(Lab/OKLCH)やイージングした色相ステップを使うと、素朴な HSL にありがちな濁り/不均一な帯を避けられる。レイヤーごとに色相をオフセット、方向反転、数段に量子化して帯状パレットにする等の変化も可能。
パラメータ
hueStart: number — Starting hue in degrees.hueStep: number — Hue increment applied per element or per frame.saturation: number — Fixed saturation of the cycling palette.lightness: number — Fixed lightness of the cycling palette.cycleSpeed: number — How fast the hue advances over time.
系譜
よく組み合わされるアルゴリズム
- Perlin / Simplex Noise · 55 作品
- Bezier / Catmull-Rom Splines · 20 作品
- Fragment Shader (GLSL) · 17 作品
- Flow Field / Vector Field · 11 作品
- Marching Squares / Contours · 10 作品
- Particle System · 7 作品
- Glitch / Datamosh · 6 作品
- Audio-Reactive · 6 作品
- Quadtree / Recursive Quad Split · 5 作品
- Domain Warping · 3 作品
- Boids / Flocking · 3 作品
- Cellular Automata · 3 作品
このアルゴリズムを使う作品 (134)
70s Pop Series Two
daniel-catt
Ad Extremum Terrae
umatha
Aithérios
jorge-ledezma
AlphaModica
danooka
Amoeba
last-even
Ancient Courses of Fictional Rivers
robert-hodgin
Apparitions
aaron-penne
Arcadia
zachariah-watson
Augury
lovid
Automatism
yazid
Autoscope
erik-swahn
Avalon
r0zk0
Beauty in the Hurting
ryan-green
Being Yourself While Fitting In
lia
Bent
ippsketch
Breathe You
raregonzo
Bright
heeey
Brushpops
matty-mariansky
BUSIEST
james-merrill
BUSY
james-merrill
Buttons
jan-robert-leegte
Center Pivot
craig-hughes-eric-hughes
CENTURY 2052
casey-reas
Chromie Squiggle
snowfro
Color Magic Planets
bard-ionson
Color Study
jeff-davis
Construction Token
jeff-davis
CryptoCountries: The Unpublished Archives of a Mythical World Traveler
michael-g-devereux
Diggly Collects All
dca
[Dis]entanglement
onlygenerated
Dive
rafael-rozendaal
Divenire
emanuele-pasin
Dot Grid
theelephantnl
Dream Engine
remo-x-dcsan
Drawings for a Monument
jeff-davis
Ecumenopolis
joshua-bagley
Elevated Deconstructions
luxpris
Empyrean
generative-artworks
Ensō
matto
Faceless
greatjones
Fake Internet Money
steve-pikelny
Fernweh
oliveskin
Fleur
anapet
flora, fauna, false gods & floods
ryan-green
Flourish
sterling-crispin
Flowers
rvig
Fluiroso
sebastian-brocher-cryptoarte
Forecast
manuel-larino
Frammenti
stefano-contiero
Freehand
wawaa
Gazers
matt-kane
Gen 2
dca
Gen 3
dca
Getijde
bart-simons
GHOST IN THE CODE
kazuhiro-tanimoto
Gizmobotz
mark-cotton
Glass
eric-de-giuli
Good, Computer
dean-blacc
Good Vibrations
aluan-wang
Gravity Grid
eliya-stein
最終更新 2026-07-16