32blit / 32blit-sdk

32blit SDK
https://32blit.com
MIT License
195 stars 68 forks source link

Request: Perlin noise functions. #170

Open mylogon341 opened 4 years ago

mylogon341 commented 4 years ago

As discussed on the discord channel, this seems like a useful set of functions to have. There are some open-source libs out there already in C++, but licensing is my concern for just using those, so I'm standing clear of this one.

nerathul commented 4 years ago

So loaded up my perlin noise code. Created just the minimal function to get 16 values, so it will not slow down the blit. I'm still not good with C++ so if someone want to make the code more efficient just pn me on Discord so we can look together on the code. Thanks everyone who helps me with it and I hope it helps somebody. https://gitlab.com/thetruenerathul/perlin-noise-for-32blit

Gadgetoid commented 4 years ago

I wonder if these qualify as something that should be added to the tween functions?

https://github.com/pimoroni/32blit-beta/blob/3e7bd7396e05a8ae926e6c01bc89795096b74133/32blit/engine/tweening.cpp#L49-L72