Live data from Hacker News

Fishdraw: Procedurally Generated Fish Drawings

fishdraw.glitch.me

31–40 of 91 posts

Re: Fishdraw: Procedurally Generated Fish Drawings

#32

The same author's "Procedurally-generated vector-format infinitely-scrolling Chinese landscape" is also quite beautiful: http://shan-shui-inf.lingdong.works/ (keep clicking the rightmost arrow)

Yes, Lingdong Huang is awesome! I have that exact one running on a framed eInk display on my wall. I had to make some minor modifications to make it run in NodeJS instead of in a browser, and then generate a raster image to send to the eInk display, but it wasn't hard.

I got permission from the author to post my work to Hackaday (with credit to him) which I'll do at some point. I'm actually working on a 3-panel "wide" version of it that I want to get done first.

https://dheera.net/projects/einkframe/

3-panel version in progress:

https://imgur.com/a/3IfKpb3

Re: Fishdraw: Procedurally Generated Fish Drawings

#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

Re: Fishdraw: Procedurally Generated Fish Drawings

#34
post #28
post #24

Earlier quoted context omitted.

Hacked kindles work well for this.

Kindles are too small and have no color. I want a large colorful framed picture. E-ink would be awesome but that’s not cheap for color displays and def not for large ones.

I mean, if you have cash and time to spend on the engineering, you can do it

https://shopkits.eink.com/product/31-2%cb%9d-color-epaper-di...

If you don't have that much cash but don't mind it emitting light, just get a used 4K TV or monitor and get a custom frame built for it.

Re: Fishdraw: Procedurally Generated Fish Drawings

#35
post #24
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.

Hacked kindles work well for this.

Also, used Boox tablets of previous models. You can get ones upto 13 inches, which Kindle doesn't have. They run Android, so you can just write a standard Android app and run it, no hacking needed.

Re: Fishdraw: Procedurally Generated Fish Drawings

#36

The same author's "Procedurally-generated vector-format infinitely-scrolling Chinese landscape" is also quite beautiful: http://shan-shui-inf.lingdong.works/ (keep clicking the rightmost arrow)

Inconvergent (https://inconvergent.net/) is another stunning generative artist as well; their generative trees (browser version: https://zv.github.io/static/algorithmic-tree.html) are especially evocative of Fishdraw.

Re: Fishdraw: Procedurally Generated Fish Drawings

#37
post #32

The same author's "Procedurally-generated vector-format infinitely-scrolling Chinese landscape" is also quite beautiful: http://shan-shui-inf.lingdong.works/ (keep clicking the rightmost arrow)

Yes, Lingdong Huang is awesome! I have that exact one running on a framed eInk display on my wall. I had to make some minor modifications to make it run in NodeJS instead of in a browser, and then generate a raster image to send to the eInk display, but it wasn't hard. I got permission from the author to post my work to Hackaday (with credit to him) which I'll do at some point. I'm actually working on a 3-panel "wide…

Really great project! Thanks for sharing it

Re: Fishdraw: Procedurally Generated Fish Drawings

#38
post #21
post #12

Earlier quoted context omitted.

var is not obsolete. You still need it sometimes for scoping reasons.

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++ people do.

Re: Fishdraw: Procedurally Generated Fish Drawings

#39

Earlier quoted context omitted.

Here is the repository (was shared yesterday in reddit’s r/generative): https://github.com/LingDong-/fishdraw

I took a look. I can't really understand it (unless I spend the whole next week on it... which I will probably do). Could someone with more expertise in the topic explain me how it is done (high level overview)?

What coolspot says below. I want to have a look and maybe create my own version, I love generative art. My "best" (the one that made me happiest) creation followed the same approach. It's an iris [0] , and the process of drawing tries to mimic how you'd draw it… and I just broke the implementation in the pieces needed for it:

    - Create background gradient
    - Create muscular coloured stripes
    - Add a bit of noise to the stripes
    - Gradient for the pupil
    - Reflection in iris and reflection in pupil (the last one is "fake")
[0] https://github.com/rberenguel/sketches#iris-p5js

Re: Fishdraw: Procedurally Generated Fish Drawings

#40
post #5

Feature request: it'd be nice to have a way to generate a link to a particular fish, such that it can be generated again.

It looks like you can provide a seed based on the readme in the github repo. This would produce the same fish every time.

I think GP is asking that every time you refresh the fish, it uses a different seed and it publishes it, perhaps via a share link. Otherwise, to find a fish you want you'll have to manipulate the url multiple times.
Post reply on HN