-
Recent Posts
Categories
@jasonbejot
- @allworknosleep fuuukk, i gotta get some!
- RT @phenomblue: Phenomblue launches OTC Halloween Fun http://post.ly/vG4O
- @allworknosleep where was it at? i haven't seen it in years!
- @k_to_the_t man bubble, fantastic
- i've just traded soreness for numbness, aarrrgg
- hooray for dental work!
Category Archives: Actionscript
A better Math.Sin()
Sine waves are great and all, but for us non-mathematicians they are difficult to visualize and tweak. So, lets dissect and analyze this ultra-common trig function. Scalpel, please A sine wave calculation has one core parameter, an angle. In AS3 this angle needs to be in radians. But we can expand this into five parameters [...]
Resizing BitmapData without scaling
Have you ever wanted to resize a BitmapData object without scaling it? Normally you would perform a matrix transformation on it by calling the draw() method, but that also scales it. So how do you acheive non-scaling resize? Hopefully this can help explain it: // create something that has BitmapData for me to resize this.bmp [...]
Color Programming in Flash