by cino
Owner: æther cavendish
opEMULy7KpMti1Q66njwpvhDa7PVdeQmN85Ma9pt3KTrGu2Xtw2- Token ID
- 1165254
- Minted
- 2022-09-14
by cino
Playback not started.
A minimalist token I coded as a form of break from the complexity of my next project.
Below you can find the 33 lines of p5.js that generate all the variations of this piece: they may seem more than 33 due to some of them exceeding the page width; zoom out and you'll see that they're really 33 ;)
let h,a;
function setup() {
colorMode(HSB);
randomSeed(fxrand()9999999999999);
createCanvas(min(windowWidth, windowHeight), min(windowWidth, windowHeight));
h = random(0,360);
a = fxrand()<0.5 ? random(0.01,1) : 1;
let mono = fxrand()<0.5 ? false : stro();
let d = random(1,50);
let s = fxrand()<0.5 ? random(15,300) : random(300,1000);
let n = random(0.01,1);
let focus = random(0,width);
for (let y=0; y<height; y+=height/(random(30,s))) {
let sat = random(30,100);
if (!mono) {stro()}
for (let x=0; x< width; x+=width/(random(1,s))) {
let d = dist(x,y,focus,y);
fill(color(h,sat,map(d,0,width/2,0,100),a));
rect(x,y,width,height);
sat = adj(sat,0,5,30,100,false);
}
h = fxrand()<n ? adj(h,-d,d,0,360,false) : h;
focus = adj(focus,-width/(d0.5),width/(d0.5),width0.1,width*0.9,true);
}
fxpreview();
}
adj = (c,d1,d2,start,end,rebound) => {
let ac = c+random(d1,d2);
ac = ac<start ? (rebound ? ac+=d2 : ac+=end-start) : ac;
ac = ac>end ? (rebound ? ac-=d2 : ac-=end-start) : ac;
return ac;
}
stro = () => fxrand()<0.2 ? stroke(h,random(50,100),random(50,100),a) : (fxrand()<0.5 ? stroke(0,a) : noStroke());
KT1U6EHmNxJTkvaWJ4ThczG4FSDaHC21ssviKT1BJC12dG17CVvPKJ1VYaNnaT5mzfnUTwXvtz1gJJrpnVojWj7mZCWRyeqCE6UPBhgFEFbiipfs://QmdEhCmaRb4oRWPUVbxgBXyEYGFAvNXgqqXoPCtK3rzbxUby cino
Owner: æther cavendish
opEMULy7KpMti1Q66njwpvhDa7PVdeQmN85Ma9pt3KTrGu2Xtw2by cino
Owner: Sasha Stiles
ooEL25Exc8qHkwiGMBkVXBxGD7Qn375aXYkuu29onPBzddLiv6gby cino
Owner: aleks.ustya
ooAhwV8N6sYAYUmo7D7anoz4RVY7qqLaYyvGtVTkibbW1thTHtpby cino
Owner: chessboss2000
onzfb4sitGqWQud2YehvHRZCfKgnsEsQCH3obM4MJaQVDAEXHiyooKWuMW27Mqz5bpDue68Suo1zytUVwauRfF14h2z7qh647gNje7ooU32UiL2uRT7uEGxj1RETqnXdGWsxd4KL9cwfUigJM94MwRHXBby cino
Owner: Stampfigang
op1enjMYQ8cDgXMD2KQtiie7bmuBE63U7HMsEk8YQBgEQh7kfqyooeLCXp89NV7tevgoGwk3kgvN7wMiMcJZGCfpr2nnxLCMf1DKoaop285NT4eW7rmwRP4Xzfu5ofUrSSrdrM1KyHSN51ijPyNdnsU3HoofKAnS4jgEi8Hhf695Hj2VNXzysgHMrLKDscYwwpwFm3wX9GX4oomaLdtcZ1yaVjbtzbCDL6LsW8eBpJdauH1osxFus9yKupytSWropZcsErHL9qR8uFFbS8ujhLUBi7jfHs1bFQphCwpFLYCPWz4z3voosgH5Fodc2f1a63EJ4Yyt7DzEDWyo1ryNiyQYAXUgxRLqwdThGooq6hn5gSkJDEVZ85UmaPKcr2bpGtvvrUMjGD657XxELh1x1H4nooNyH2MCKA2nqqQaRRYHkz1HAHfovh4ZB4asuH2gCjBeqNpUQPAooW5itLxxT1JMZ4WeDeQCu12Ze6e49pSCjP56HusJAi55rKMNv4oozGAcnFh5nhZcnrf9ZfWthrwWripodLZRjWmmfWxzEksnf41ZVooKPihh69fRb49L6w794szdSoJtdhm1zEnbJ33UMRBbFZvStEmHby cino
Owner: Tendernode
oo2cJ3E76CXkQDVm6FArqvSjmUjrhB24VZXoaRd89VZYQDuWtb8opDWYn2YQ5Pshitq9CfCHvx78F9HN2dEAntrukxzswZbcSRyJLSopRLwdEZ9d17LuMzdivgrbCCAbZfMtamDYFJ21W76M3Z5Um4w8SCurrent mint status and pricing are unavailable. Reload to retry.
Primary minting creates a new NFT. This site replays existing NFTs.
By cino
"33 lines of code" is my second attempt at what I call minimalist coding: trying to create an interesting generative token with as little code as possible. In this article I explain my script line by line.
Last completed index sync: block 15932578 · Mon, 23 Nov 2026 00:50:20 GMT.