Live data from Hacker News

Fishdraw: Procedurally Generated Fish Drawings

fishdraw.glitch.me

41–50 of 91 posts

Re: Fishdraw: Procedurally Generated Fish Drawings

#46
post #33
post #19

Love the generated art projects. I just want an art ‘frame’ (display with small computer) that generates new art every so often. Put together a few of the various art ML projects into one product for this.

Yep, I did this https://dheera.net/projects/einkframe/ I'm working on a 3-panel version of it since I want a "wider" view of this scrolling landscape, and single e-Ink displays that big aren't cheap but 3 of these smaller displays are still within my budget. https://imgur.com/a/3IfKpb3

This is really cool! Thanks for sharing

Re: Fishdraw: Procedurally Generated Fish Drawings

#48
post #45

Does anyone have a good list of resources for people who want to get a get baseline on understanding and implementing procedural generation?

It's more art than code, maybe start drawing a city skyline. Have different basic types of roof (triangle, trapezoid, none), windows (round, square, subdivided) and a variable number of flours. Play around with it in html canvas.

Re: Fishdraw: Procedurally Generated Fish Drawings

#49
post #45

Does anyone have a good list of resources for people who want to get a get baseline on understanding and implementing procedural generation?

I don't have a list, but "processing" language is very good at art and math(s) stuff

https://processing.org/

it has some cool demos/ examples

https://processing.org/examples/

and it's opensource

Re: Fishdraw: Procedurally Generated Fish Drawings

#50
post #38
post #21

Earlier quoted context omitted.

Could you give an example? It seems like any "var" could be replaced with "let" at a different scope.

Won't work: if(checkForSomething()) { let foo = 2; } else { let foo = 3; } console.log(foo); // won't work But: if(checkForSomething()) { var foo = 2; } else { var foo = 3; } console.log(foo); // will work That said, I religiously avoid "var" and just declare the variable beforehand with "let" because there are too many other gotchas with var. Less debugging headaches. And use "const" religiously as well, like C++ pe…

const in C++ is very different than const in JavaScript though. I guess you are well aware of that but I feel like being pedantic.

This is allowed in JavaScript:

    const foo = {bar: 1};
    foo.bar = 2;
Post reply on HN