Hacker News new | ask | show | jobs
by sillysaurusx 2147 days ago
The iOS demo is amazing and I’m shocked no one is saying so! Thanks for making it.

Is the code up anywhere?

1 comments

Hey :), full code isn't up yet but I can share the color pattern:

http://thebookofshaders.com/edit.php?log=200806194314

The technique is called "sine puke", and it works by starting with a gradient (in this case a rainbow) and warping the domain when drawing that gradient by sine functions repeatedly (check the for loop)

In the fluid demo I blend new frames with the previous so you get this slower, softer pattern