Having stepped away from this project for a year or so, it was fun to come back and revive it and think about new possible directions to take it. I hava a lot of ideas, and will continue to push it forward over the next few months.
In my first step back, I decided to take on adding random gradients to the project. This is a completely new direction, and one I have been thinking about for a while. There are a few other ideas that you will see wending their way into the project in upcoming iterations.
Code Snippets for 19
Adding gradients meant that I needed to convert my hex colors in my color scheme to RGB colors. Rather than do this manually, I used this simple JavaScript converter to do it for me on the fly.
Adding a gradient to a box is pretty simple, once you figure out the css gradient syntax. I pick two colors from the current color scheme, convert the hex format to rgb format and generate the gradient. I decided to keep the gradients at 180 degrees, since the elements are rotated anyway. That might change in the future.