HackerTrans
TopNewTrendsCommentsPastAskShowJobs

dannyking

no profile record

Submissions

Show HN: Color Orbs (Generative Art)

dannyking.uk
49 points·by dannyking·hace 4 años·21 comments

comments

dannyking
·hace 4 años·discuss
If you'd like to see an implementation of something that uses Perlin noise, check out this generative art project I did: https://dannyking.uk/artwork/colororbs

Perlin noise is how the lines flow togeher rather than crossing each other during the animations.

I have a technical write up that explains how it works at the bottom.
dannyking
·hace 4 años·discuss
Relevent xkcd: https://xkcd.com/303/
dannyking
·hace 4 años·discuss
This is supportive more than constructive but this is a really great article. Your code is clear and instructions are really nice to follow. Bravo!
dannyking
·hace 4 años·discuss
There's also the YouTube channel AudioLibraryFreeMusic that has a lot of high quality songs that are apparently safe to use, even for commerical use.

https://m.youtube.com/c/AudioLibraryFreeMusic/featured
dannyking
·hace 4 años·discuss
Hmm, interesting, thanks! I'll try and fix that. Much apprecaited.
dannyking
·hace 4 años·discuss
Check out this repo for a 3D version of the same idea by Vinay Bhaip: https://github.com/vbhaip/perlin-planets
dannyking
·hace 4 años·discuss
Ah thanks. Sounds like I need to re-think my video player UI to make that more obvious.
dannyking
·hace 4 años·discuss
Thanks for the feedback, much appreciated.

On the size of the art, with this art project I'm limited to the size of the orbs being 300x300px as the way I implemented the drawing algorithm unfortunately means I can't scale up the size of a render without changing the random seed and causing a different image to be created. So these are necessarily limited to that smaller size unless I introduce pixellation. For future projects I intend to have a resolution independent drawing algorithm rather than hard-coding pixel lengths. Lessons learned!

For future projects though I agree, I'd like to dedicate much more screen real estate to each image. I appreciate you taking the time to draw that mockup, thanks.

On the gallery page not working, could you let me know what browser and device you're using? The animations are .webm video files, which are not supported yet in some browsers so I also provide a .mov fallback for browsers that don't support it, which works here when I test it but it sounds like I've not got that fallback working in all situations yet (unless you have JS disabled). Should work for you on any modern non-Safari browser that isn't on an iOS device, for sure though.
dannyking
·hace 4 años·discuss
It's not I'm afraid, no. To be honest I'm embarrassed about the code quality, since I mostly just hacked it together for myself and was a hobby project more than anything else, so I didn't release the source anywhere or think much about licenses. Having said that, here are the two JS files that power the "make your own color orb" browser tool:

https://www.dannyking.uk/js/colororbs/dna.js https://www.dannyking.uk/js/colororbs/sketch.js

The latter being the core rendering algorithm (inside the setup() and draw() functions).
dannyking
·hace 4 años·discuss
Thank you! I totally agree; the curation part is by far the hardest part for me. Tyler Hobbs writes about the curation process nicely here: https://tylerxhobbs.com/process

I've not tried anything in 3D yet, that's a nice idea.
dannyking
·hace 4 años·discuss
This guy beat me to that! https://www.youtube.com/watch?v=8uHtffYrXww
dannyking
·hace 4 años·discuss
Thank you! I really appreciate that. That sounds like a great project idea. To draw a black and white one, this write up (from the person that inspired my project) would be a great place to start: https://avinayak.github.io/art/2021/01/09/noise-planets.html
dannyking
·hace 4 años·discuss
Thanks! I wanted to keep the focus on the art, especially since it was directly inspired by someone else's art, so NFT-free.
dannyking
·hace 4 años·discuss
This is great. I'd love to hear about the tech stack you used to make it.