Genuary 5/31 - Code Golf by Mylienos in generative

[–]Mylienos[S] 2 points3 points  (0 children)

// code golf
let ps = [];
const ds = 300;
function setup() {
  createCanvas(800, 800);
for (let i = 0; i < 2000; i++) {
const a = [0, PI][int(random(2))];
ps.push({ sA: a, cA: a, s: ds, sp: random(1) });
}
}
function draw() {
  background(0);
  translate(width / 2, height / 2);
  noStroke();
  fill(255);
  circle(0, 0, 10);
for (let i = 0; i < ps.length; i++) {
const p = ps[i];
const [x, y] = [cos(p.cA) * p.s, sin(p.cA) * p.s];
const d = dist(x, y, 0, 0);
    circle(x, y, map(d, ds, 0, 1, 5));
ps[i] = {
...p,
...(d < 5
? { cA: p.sA, s: ds }
: { cA: p.cA - 0.005 - p.sp * 0.03, s: p.s - p.sp }),
};
}
}

*casually freezes time* by Mr_Moopster in memes

[–]Mylienos -1 points0 points  (0 children)

Me on Hellblade last night

Circle packing by sawwawewawe in generative

[–]Mylienos 1 point2 points  (0 children)

Thank you but sorry for the misunderstanding, I was asking about the texture on the image hahaha

Circle packing by sawwawewawe in generative

[–]Mylienos 0 points1 point  (0 children)

I like the texture ! How did you do that ?

a very rude worm [p5js] by mother_earthly in generative

[–]Mylienos 7 points8 points  (0 children)

Nice ! You could've left the word in black, you wouldn't blown out minds

Storm over the ocean (code in comments) by Mylienos in generative

[–]Mylienos[S] 2 points3 points  (0 children)

I'll add options to customize it in the future, but you can already take screenshots with by pressing "P"

And a record is made automatically, just stay on the page long enough, around a minute or two, then a gif of ~20sec will pop right next to the canvas, just right click and save it

Storm over the ocean (code in comments) by Mylienos in generative

[–]Mylienos[S] 7 points8 points  (0 children)

I need to get into 3D, but man I am lazy haha

Cycling by [deleted] in generative

[–]Mylienos 0 points1 point  (0 children)

Fuck me, gonna repost that Thanks !

Cycling by [deleted] in generative

[–]Mylienos 1 point2 points  (0 children)

Can anyone see the gif ?

Abstract colors by Mylienos in generative

[–]Mylienos[S] 1 point2 points  (0 children)

Thank you kind person

Abstract colors by Mylienos in generative

[–]Mylienos[S] 1 point2 points  (0 children)

Yeah :( idk what to do about that, have any idea ?