#minacoding2023 · Day 24
June 24 · June 18–24
Human
1週間で作品を作成してください。作品のテーマは「人」です。(どこまでも抽象的に捉えていただいて構いません)作品の経過を投稿するようにしましょう。
日程・ツールは自由です。
// スケッチが未作成のテーマ用の仮スケッチ。
// 年・日付のシードから、ゆっくり動く円の構成を描く。
/** @param {import('p5')} p */
export default function sketch(p, ctx) {
const { width, height, palette } = ctx;
let dots = [];
p.setup = () => {
p.createCanvas(width, height);
p.noStroke();
dots = Array.from({ length: 24 }, () => ({
x: p.random(width),
y: p.random(height),
r: p.random(20, 120),
c: p.random(palette.slice(2)),
t: p.random(1000),
}));
};
p.draw = () => {
p.background(palette[1]);
for (const d of dots) {
const dx = (p.noise(d.t, p.frameCount * 0.004) - 0.5) * 60;
const dy = (p.noise(d.t + 99, p.frameCount * 0.004) - 0.5) * 60;
const c = p.color(d.c);
c.setAlpha(180);
p.fill(c);
p.circle(d.x + dx, d.y + dy, d.r);
}
};
}
Placeholder sketch