EriKWDev / nanim

Nanim is an easy-to-use framework to create smooth GPU-accelerated animations that can be previewed live inside a glfw window and, when ready, rendered to videos at an arbitrary resolution and framerate.
MIT License
119 stars 3 forks source link

Add More Styles and Patterns #6

Open EriKWDev opened 3 years ago

EriKWDev commented 3 years ago

One thing I want to be able to do with nanim is to replicate some of the amazing art pieces that I have saved on my pinterest here https://www.pinterest.se/ErikWGren/animation/

Many of them utilize textures and gradients to create a unique look. I want nanim to support textures and patterns and a lot of those same concepts.

Todo

EriKWDev commented 2 years ago

The way nanim does patterns is very hacky. I beleive it clears the context and saves the pixels it cleared, then draws the pattern, saves the pattern's pixels and redraws the original ones. It at least used to work like that in my initial implementation, but I might have changed it down the line.

If that still is the way it works it obviously needs to change xD