~ A wondrous tiny world. A universe in miniature. ~
Drawing a circle
// Placing 50 points
// around the circumference of a circle
beginShape()
for(let a = 0; a < TAU; a+=TAU/50){
let x = 200 + 100 * cos(a)
let y = 200 + 100 * sin(a)
vertex(x, y)
}
endShape(CLOSE)
Deforming with Perlin Noise
beginShape()
for(let a = 0; a < TAU; a+=TAU/50){
let x = 200 + 100 * cos(a)
let y = 200 + 100 * sin(a)
let noi = map(noise(x * 0.02, y * 0.02),0,1,-10,10)
vertex(x+noi, y-noi)
}
endShape(CLOSE)
Deforming with a Sine
// Placing 50 points
// around the circumference of a circle
beginShape()
for(let a = 0; a < TAU; a+=TAU/50){
let x = 200 + 100 * cos(a)
let y = 200 + 100 * sin(a)
let mod = sin(y*0.01+a) * 10
vertex(x+mod, y-mod)
}
endShape(CLOSE)
Something back from 2022
They see me warpin, they hatin
1. Displacing vertices with noise
2. Modulating one noise with another
Periodic Function
Domain Warping
Actually had to go back and read my code to figure out what I was doing
for(let n = 0; n < numAttempts; n++){
let randX = random(PAD, 800 - PAD)
let randY = random(PAD, 800 - PAD)
let randR = random(5, 50)
let placeable = true
for(let i = 0; i < circles.length; i++){
let otherC = circles[i]
let d = dist(
otherC.x, otherC.y,
randX, randY
)
if(d < otherC.rad + randR + 5){
placeable = false
}
}
if(placeable){
circles.push(
{x: randX, y: randY, rad: randR}
)
}
}
Why are shapes overlapping?
What's actually going on under the hood
Biootifullll! (But takes forever)
buff1 = createGraphics(WID, HEI)
buff2 = createGraphics(WID, HEI)
Buff 1
Buff 2
Buff 1+2
Transparent fills on some of the see through circles - kind of like membranes.
Little dashed lines around the circumference of the blobs.
Is this where I shill my NFTs?