opEMULy7KpMti1Q66njwpvhDa7PVdeQmN85Ma9pt3KTrGu2Xtw233 lines of code
by cino
- Minted
- 85 / 86
- Published
- 2022-09-14
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());
Project information
- fxhash project ID
- 19419
- Runtime
- fxhash snippet · params: no
- Network
- Tezos
- Token contract
KT1U6EHmNxJTkvaWJ4ThczG4FSDaHC21ssvi- Issuer (mint) contract
KT1BJC12dG17CVvPKJ1VYaNnaT5mzfnUTwXv- Artist addresses
tz1gJJrpnVojWj7mZCWRyeqCE6UPBhgFEFbi- Generator URI
ipfs://QmdEhCmaRb4oRWPUVbxgBXyEYGFAvNXgqqXoPCtK3rzbxU
Editions 85
Ownership snapshot 2026-10-07ooEL25Exc8qHkwiGMBkVXBxGD7Qn375aXYkuu29onPBzddLiv6gooAhwV8N6sYAYUmo7D7anoz4RVY7qqLaYyvGtVTkibbW1thTHtponzfb4sitGqWQud2YehvHRZCfKgnsEsQCH3obM4MJaQVDAEXHiyooKWuMW27Mqz5bpDue68Suo1zytUVwauRfF14h2z7qh647gNje7ooU32UiL2uRT7uEGxj1RETqnXdGWsxd4KL9cwfUigJM94MwRHXBop1enjMYQ8cDgXMD2KQtiie7bmuBE63U7HMsEk8YQBgEQh7kfqyopNZkriN9cyBe1f3n9UEJq4yDFT8vZqEWoLry2GLtK91KCCMdbxonpMeVXchyqzuHVmMwsNDfbZJZe3Z8VWzyjB7rRgSb8wDFpru7qooeLCXp89NV7tevgoGwk3kgvN7wMiMcJZGCfpr2nnxLCMf1DKoaop285NT4eW7rmwRP4Xzfu5ofUrSSrdrM1KyHSN51ijPyNdnsU3HoofKAnS4jgEi8Hhf695Hj2VNXzysgHMrLKDscYwwpwFm3wX9GX4oomaLdtcZ1yaVjbtzbCDL6LsW8eBpJdauH1osxFus9yKupytSWroosgH5Fodc2f1a63EJ4Yyt7DzEDWyo1ryNiyQYAXUgxRLqwdThGooq6hn5gSkJDEVZ85UmaPKcr2bpGtvvrUMjGD657XxELh1x1H4nooNyH2MCKA2nqqQaRRYHkz1HAHfovh4ZB4asuH2gCjBeqNpUQPAooi8LYgCX7SvMxmLXEyURBLSEJUvYNmMtMLgyC6NRTdLvGHJfWAooW5itLxxT1JMZ4WeDeQCu12Ze6e49pSCjP56HusJAi55rKMNv4oozGAcnFh5nhZcnrf9ZfWthrwWripodLZRjWmmfWxzEksnf41ZVooKPihh69fRb49L6w794szdSoJtdhm1zEnbJ33UMRBbFZvStEmHoo2cJ3E76CXkQDVm6FArqvSjmUjrhB24VZXoaRd89VZYQDuWtb8opDWYn2YQ5Pshitq9CfCHvx78F9HN2dEAntrukxzswZbcSRyJLSopRLwdEZ9d17LuMzdivgrbCCAbZfMtamDYFJ21W76M3Z5Um4w8SooSN8Vk411G1B5FxXa5u7piPwjVbVjrQJ6FH8cejn5jbRgyJhz2Release
Current mint status and pricing are unavailable. Reload to retry.
Primary minting creates a new edition. This site replays existing editions.
Mint history
- Supply
- 86
- Indexed editions
- 85
- Mint scheduled
- 2022-09-14T20:20:59.000Z
- Primary mints recorded
- 85
- Prices paid at mint
- 0 tez · 85 priced mints
Current mint availability and pricing are shown on fxhash.
Market history
- Secondary trades
- 10
- Recorded volume
- 11.838 tez / wXTZ
- Lowest latest priced sale
- 0.8 tez / wXTZ
Historical trades; not current asking prices. Summaries refresh within 30 seconds.
Last completed sales index sync
- fx(params) mint tickets
- Block 15275886
- fxhash issuer v1 (first)
- Block 15275886
- fxhash issuer v1
- Block 15275886
- fxhash issuer v2
- Block 15275886
- fxhash issuer fx(params)
- Block 15275886
- fxhash marketplace v2
- Block 15275886
- fxhash marketplace v1
- Block 15275886
- objkt.com marketplace v1
- Block 15275886
- objkt.com English auctions v2
- Block 15275886
- objkt.com marketplace v2
- Block 15275886
- objkt.com English auctions v1
- Block 15275886
- objkt.com marketplace v3.2
- Block 15275886
- objkt.com collection offers
- Block 15275886
- objkt.com English auctions v3
- Block 15275886
- objkt.com marketplace v3.1
- Block 15275886
- objkt.com Dutch auctions v1
- Block 15275886
Related articles
33 lines of code
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.
- Published
- 2022-09-18
- Minted editions
- 263
Index coverage
Articles mentioning this project or its editions. Last completed index sync: block 15275905 · Wed, 07 Oct 2026 23:06:57 GMT.