// ########################################################
// # Update (20220523): #
// # This OBJKT was airdropped to holders of OBJKT #
// # #209208. There was an API bug discovered in the #
// # previous OBJKT which prevented it from rendering #
// # as intended. #
// # #
// # Feel free to burn #209208 at your own discretion. #
// ########################################################
//
// ██████╗ ██╗ ██╗██████╗ ██╗ ███████╗██╗ ██╗
// ██╔══██╗██║ ██║██╔══██╗██║ ██╔════╝╚██╗██╔╝
// ██║ ██║██║ ██║██████╔╝██║ █████╗ ╚███╔╝
// ██║ ██║██║ ██║██╔═══╝ ██║ ██╔══╝ ██╔██╗
// ██████╔╝╚██████╔╝██║ ███████╗███████╗██╔╝ ██╗
// ╚═════╝ ╚═════╝ ╚═╝ ╚══════╝╚══════╝╚═╝ ╚═╝
// ______________________________________________________
// | |
// | 001 |
// |______________________________________________________|
// | |
// | This OBJKT takes its own description metadata and |
// | executes it as code to render its output |
// | |
// | It's ALSO able to take instructions from another |
// | OBJKT its connected to, but only if you own it too |
// | |
// | Collect both pieces and see the art rendered |
// | together, uniquely based on your wallet! |
// | |
// | This is a collaboration between |
// | Yazid & Eltono |
// |______________________________________________________|
// | |
// | 16 Aug 2021 |
// |______________________________________________________|
let subCells = random(5,60)
let miniHeight = cellHeight/subCells
let miniWidth = cellWidth/subCells
let density = random(5)
for(let y1=0;y1<subCells;y1++){
for(let x1=0;x1<subCells;x1++){
let angle = radians(random(90))
rotate(angle)
if(random(10)>3.5){
noStroke()
let randColor = color(random(pieceColors))
randColor.setAlpha(random(190,245))
fill(randColor)
ellipse(
random(cellWidth*density*x1*0.05),
random(cellHeight),
width/random(40,100)
)
} else {
noFill()
let randColor = color(random(pieceColors))
randColor.setAlpha(random(190,245))
stroke(randColor)
strokeWeight(width/random(80,200))
strokeCap(SQUARE)
line(
(miniWidth*density*0.4*x1)+(x1+0)*miniWidth,
(y1+0)*miniHeight,
(miniWidth*density*0.4*x1)+(x1+0)*miniWidth,
(y1+random(1,5))*miniHeight,
)
}
}
}