
4) lowres
Perlin noise, but … really lowres? You can play with how low res or how many colors you want.
let gui;
let params = {
lowRes: 16, lowResMin: 1, lowResMax: 100,
colors: 16, colorsMin: 1, colorsMax: 64,
threshold: 0.5, thresholdMin: 0, thresholdMax: 1, thresholdStep: 0.01,
varyValue: false,
};
function setup() {
createCanvas(400, 400);
colorMode(HSB, 360, 100, 100);
noSmooth();
gui = createGuiPanel('params');
gui.addObject(params);
gui.setPosition(420, 0);
}
function draw() {
for (let y = 0; y < params.lowRes; y++) {
for (let x = 0; x < params.lowRes; x++) {
let real_w = width / params.lowRes;
let real_h = height / params.lowRes;
let real_x = real_w * x;
let real_y = real_h * y;
let n = noise(
x * 0.08,
y * 0.08,
frameCount * 0.02
);
let n2 = noise(
(10 * params.lowRes + x) * 0.08,
(10 * params.lowRes + y) * 0.08,
1 + frameCount * 0.04
);
fill(0);
if (n > params.threshold) {
let hp = (n - params.threshold) / (1 - params.threshold);
hp = constrain(hp, 0, 1);
hp = pow(hp, 1.5);
let h = floor(hp * params.colors) * (360 / params.colors);
if (params.varyValue) {
fill(h, 100, n2 * 50 + 50);
} else {
fill(h, 100, 100);
}
}
rect(real_x, real_y, real_w, real_h);
}
}
}
Posts in Genuary 2026:
- Genuary 2026.25: Organic Geometry
- Genuary 2026.24: Perfectionist's Nightmare
- Genuary 2026.23: Transparency
- Genuary 2026.22: Pen plotter ready
- Genuary 2026.21: Bauhaus poster
- Genuary 2026.20: One line
- Genuary 2026.19: 16x16
- Genuary 2026.18: Unexpected paths
- Genuary 2026.17: Wallpaper Groups
- Genuary 2026.16: Order vs Disorder
- Genuary 2026.15: Invisible Object
- Genuary 2026.14: Fits Perfectly
- Genuary 2026.13: Self Portrait
- Genuary 2026.12: Boxes
- Genuary 2026.11: Quine
- Genuary 2026.10: Polar coordinates
- Genuary 2026.09: Cellular automata
- Genuary 2026.08: A city
- Genuary 2026.07: Boolean algebra
- Genuary 2026.06: Lights on/off
- Genuary 2026.05: Write 'genuary'
- Genuary 2026.04: lowres
- Genuary 2026.03: Fibonacci forever
- Genuary 2026.02: Twelve principles of animation
- Genuary 2026.01: One color, one shape