// T H E
// ____ __ ____
// /\ \ /'_/'\ /\ _ /__ \
// \ \ / /\ \ \ \ ,\ __ //\ \
// \ \ \ \ \ __\ \ /''\ \ / /''\ \ \ \
// \ \ _ \ \ _/\ /\ /\ \ _/\ \L._ _\ \
// \ _\ \ _\ _\ _\ _\ _/._\ /_
// // // //// ////// //
// ______________________________________________________
// | |
// | I N S T R U C T I O N S #7 |
// ||
// | |
// | This OBJKT takes its own description metadata and |
// | executes it as code to render its output |
// ||
// | |
noiseSeed(random(10000))
noiseDetail(1)
background(pieceColors[0])
let inc = 0.01
rectMode(CENTER)
fill(pieceColors[1])
noStroke()
let nYOff = 0
for(let y=0;y<rows;y++){ // 100 rows
let nXOff = 0
for(let x=0;x<columns;x++){ // 100 columns
push()
translate((x+0.5)*gridWidth,
(y+0.5)*gridHeight)
let angle = map(noise(nYOff,nXOff),0,1,0,360)
rotate(radians(angle))
rect(0,0,width/800,height/30) // 10,000 lines
pop()
nXOff += inc;
}
nYOff += inc;
}
// || // | | // | Clicking anywhere regenerates the art and | // | toggles between black/white mode | // | | // | Made in p5js | // || // | | // | 12 Aug 2021 @Yazid | // |______________________________________________________|