Color cycling
Color cycling · Palette cycling · Palette shifting · Ciclo de paleta · Rotación de paleta
An 8- and 16-bit computer technique where the picture stays still and only the palette colours move, rotating in a loop. Waterfalls, waves, fire and sunset skies come alive without redrawing a single pixel.
- Era
- 1985 – today
Live demo
View code
<figure>
<canvas id="cv" width="160" height="100"></canvas>
<div class="pal" id="pal"></div>
<figcaption>CICLO DI PALETTE · 40 COLORI · 0 PIXEL RIDISEGNATI</figcaption>
</figure>
<script>
const P=['#1a0b3d','#2b0f54','#4a1466','#6e1a6e','#99206b','#c73866','#ef6a5a','#ffa154','#ffe66d','#ffb347','#2a1640','#3d1f55','#1c0f2a','#2e1a3c','#000','#000',
'#1e3a8a','#2563eb','#3b82f6','#60a5fa','#93c5fd','#dbeafe','#93c5fd','#3b82f6','#1b1464','#2a1f7a','#3d2a8f','#5b2f9a','#7d3a9e','#5b2f9a','#3d2a8f','#2a1f7a',
'#ffe66d','#ffb347','#ff7a59','#ffb347','#ffffff','#9aa0ff','#2b0f54','#9aa0ff'].map(h=>[1,3,5].map(i=>parseInt(h.length>4?h.substr(i,2):'00',16)));
const W=160,H=100,M=new Uint8Array(W*H);
for(let y=0;y<H;y++)for(let x=0;x<W;x++){let i=Math.min(7,y/8|0);
if(y<40&&((x*13+y*7)%97===0))i=36+((x+y)%4);
const dx=x-118,dy=y-48;if(dx*dx+dy*dy<256&&y<62&&!(y>50&&y%3===0))i=y<46?8:9;
const m=58-12*Math.abs(Math.sin(x/23))-4*Math.sin(x/7);if(y>m&&y<62)i=x%2&&y%2?11:10;
if(y>=62)i=24+(((y*0.9+2*Math.sin(x/5+y/3))|0)%8+8)%8;
if(y>=62&&Math.abs(x-118)<12-(y-62)/4)i=32+((y+(x%2))%4);
if(x<40+Math.sin(y/6)*2&&y>30+x*0.15)i=(x+y)%5?12:13;
if(x>=40&&x<52&&y>34)i=16+((y+((x*7)%3))%8);
M[y*W+x]=i}
const cv=document.getElementById('cv'),cx=cv.getContext('2d'),im=cx.createImageData(W,H),pal=document.getElementById('pal');
for(let i=0;i<16;i++)pal.append(document.createElement('i'));
const sw=[...pal.children];let o=0;
const R=[[16,8],[24,8],[32,4],[36,4]];
function col(i){for(const[a,n]of R)if(i>=a&&i<a+n)return P[a+((i-a-o)%n+n)%n];return P[i]}
function draw(){for(let k=0;k<W*H;k++){const c=col(M[k]);im.data[k*4]=c[0];im.data[k*4+1]=c[1];im.data[k*4+2]=c[2];im.data[k*4+3]=255}
cx.putImageData(im,0,0);sw.forEach((s,j)=>{const c=col(16+j);s.style.background=`rgb(${c})`})}
draw();
if(!matchMedia('(prefers-reduced-motion: reduce)').matches){let t=0;(function L(ms){if(ms-t>110){t=ms;o++;draw()}requestAnimationFrame(L)})(0)}
</script> body{margin:0;height:100vh;display:grid;place-items:center;background:#0d0620;overflow:hidden;font-family:VT323,monospace;color:#ffa154}
figure{margin:0;width:min(400px,92vw)}
canvas{display:block;width:100%;image-rendering:pixelated;border:4px solid #2b0f54;box-shadow:0 0 0 2px #ffa154,0 10px 30px #000}
.pal{display:flex;margin-top:8px;border:2px solid #2b0f54}.pal i{flex:1;height:12px}
figcaption{margin-top:6px;text-align:center;font:10px Silkscreen,monospace;letter-spacing:1px;color:#ffa154} Characteristics
- Indexed-colour pixel art picture
- Colour ranges rotating in stepped loops
- Water and fire and lights flowing without moving outlines
- Hard-banded gradients without anti-aliasing
- Slow hypnotic living-landscape rhythm
Palette
Click a swatch to copy it
Typography
Headings · Silkscreen Color cycling
Body · VT323 An 8- and 16-bit computer technique where the picture stays still and only the palette colours move, rotating in a loop. Waterfalls, waves, fire and sunset skies come alive without redrawing a single pixel.
Motion
- Easing
steps() a scatti, nessuna interpolazione tra un colore e l'altro- Typical duration
- 60–200 ms per passo, cicli di 8–16 colori in loop infinito
- Techniques
- canvas con mappa di indici e tabella di palette, ImageData riscritta a ogni passo, image-rendering pixelated, requestAnimationFrame con timer a passi, background-position a steps() come imitazione in solo CSS
Accessibility (reduced motion)
Show the scene with the palette frozen in one state, without cycling the colours.
Prompt for your agent
Copy and paste into your prompt to have an agent or image generator reproduce this style.
For web pages and UI
Design the web page or interface in this style: Color cycling (Palette cycling). An 8- and 16-bit computer technique where the picture stays still and only the palette colours move, rotating in a loop. Waterfalls, waves, fire and sunset skies come alive without redrawing a single pixel. Characteristics: Indexed-colour pixel art picture, Colour ranges rotating in stepped loops, Water and fire and lights flowing without moving outlines, Hard-banded gradients without anti-aliasing, Slow hypnotic living-landscape rhythm. Palette: #1A0B3D, #C73866, #FFA154, #2563EB, #DBEAFE, #5B2F9A. Typography: headings in Silkscreen, body text in VT323 (Google Fonts or equivalents). Mood: nostalgic, dreamy, calm. Motion: easing steps() a scatti, nessuna interpolazione tra un colore e l'altro, typical duration 60–200 ms per passo, cicli di 8–16 colori in loop infinito; techniques: canvas con mappa di indici e tabella di palette, ImageData riscritta a ogni passo, image-rendering pixelated, requestAnimationFrame con timer a passi, background-position a steps() come imitazione in solo CSS. With prefers-reduced-motion: Show the scene with the palette frozen in one state, without cycling the colours. References: Dipinti a ciclo di palette di Mark Ferrari per avventure grafiche (1990), Programmi di pittura a 16 bit con color cycling (1985–1990), Canvas Cycle di Joseph Huckaby (HTML5, 2010), Avventure punta e clicca a 256 colori.
For images
Create the image in this visual style: Color cycling (Palette cycling). An 8- and 16-bit computer technique where the picture stays still and only the palette colours move, rotating in a loop. Waterfalls, waves, fire and sunset skies come alive without redrawing a single pixel. Characteristics: Indexed-colour pixel art picture, Colour ranges rotating in stepped loops, Water and fire and lights flowing without moving outlines, Hard-banded gradients without anti-aliasing, Slow hypnotic living-landscape rhythm. Keywords: palette cycling pixel art landscape, indexed color sunset with banded sky, shimmering waterfall made of rotating blue tones, sea with color cycled wave stripes, 16-bit era computer art, crisp pixels no anti-aliasing. Palette: #1A0B3D, #C73866, #FFA154, #2563EB, #DBEAFE, #5B2F9A. Mood: nostalgic, dreamy, calm. Avoid: smooth gradients, 3D render, photorealism, vector art.
Relations
Derives from
Similar to
References
- Dipinti a ciclo di palette di Mark Ferrari per avventure grafiche (1990)
- Programmi di pittura a 16 bit con color cycling (1985–1990)
- Canvas Cycle di Joseph Huckaby (HTML5, 2010)
- Avventure punta e clicca a 256 colori