Project Euler

󰃭 2013-03-12 | #math #programming-projects

I started doing the Project Euler problems last weekend. So far managed to get to problem 10. I have realized how much I suck at math, and now I want to learn more. I know people with knowledge in math will probably laugh at my solutions, I really feel like I half-assed most of them so far. Those with knowledge in math will probably find the problems easier than those with knowledge only in programming… Being good at math makes you a better programmer.

Continue reading 


Rainbow Tunnel

󰃭 2013-03-07 | #canvas #fun #javascript #programming-projects

Today I had some more time to code something fun, so I decided to make a tunnel of sorts. The trick is really simple, first you just draw rings around the center of the page, and tweak their position a bit depending on the position of the mouse. To achieve the rainbow effect, you just have to make it so each ring has its hue value a little higher than the ring before it, and increase all of the rings’ hues each frame.

Continue reading 


Messing Around With Trig

󰃭 2013-03-05 | #canvas #fun #javascript #programming-projects

Yesterday after work I had some time to waste, so I decided to do some silly things in javascript with a canvas and some trigonometric magic. Move your mouse around to change some variables, and click to toggle clearing of the canvas. You can achieve some trippy effects! colorful sine wave colorful flower These are all on my github, in case you wanna take a look.

Continue reading 