james on June 9th, 2009

i understand this sign
Understanding Sine
A couple days ago when I was working on the spiral experiment, I needed to read up a little bit on trigonometry because I realized that to calculate the x’s and y’s that I needed to plot, I needed to visualize a right triangle with point A at origin, B at my x coordinate, and C at my y coordinate. Given angle and a hypotenuse length, I could calculate my adjacent and opposite angles using the cosine and sine functions, respectively. Then, increase the hypotenuse length at the same rate as lines are drawn, et voila, you get a spiral.
But I wanted to understand sine better. I saw an animated diagram at the Wikipedia article that showed me how the sine function produced the typical sine wave graph, and how it related to the circle. But I still wanted more. I wanted to be the line and find out how given one number, the other number could be circumscribed either on the circumference of a circle, or transposed(?) onto the positive-x quadrants of a graph. Hence my experiment today.
Questions still lingering
- As I increased angle, my red line was moving clockwise on the circle. I thought increasing angle would move in a counter-clockwise direction. Is this just a move on the part of programming engines to try to be more logical than traditional math?
- As angle approached 90°, the y-coordinate decreased – why? I thought it should increase as angle approaches 90, then fall as it approaches 180, repeat.
james on June 8th, 2009
Experiment 20090606 (for saturday – i was painting a house.)
james on June 5th, 2009

*cough*
WEEeeed (yeah, that kind)
I don’t even wanna SAY how much time this took me to build. Everything I tried to do got screwed up. This is, like, Plan X.
Music by G. Love & Special Sauce. Used without permission*.
*please don’t sue me. i have nothing but love for y’all. i buy your albums.
james on June 4th, 2009
Experiment 20090604
There are occasional anomalies which I haven’t figured out. More soon.
———–
[UPDATE 2009-06-05 19:10] This from the developer of the SVG integration plugin for jQuery, Keith Wood:
Hi James
There was a problem with initialising the animation in some cases, which resulted in the start values being set to 0. This has been fixed in v1.4.0, due out tomorrow.
Cheers
Keith
So when 1.4 is out, I’ll put out a v.2 so you can see the difference. And I think I’ll add the music as Mike suggested it would go well with this.
———–
[UPDATE 2009-06-09 13:04] SVG Integration 1.4 came out. Here’s a re-release of Experiment 20090604 with the new library which solved the issue with the shooting branches. Sorry to those who like those.
Experiment 20090604 v0.2
james on June 3rd, 2009
Flight
This one plays with a lot of randomization. Some of my other scripts before randomized things, but this one has many factors – gravity, current, change in current, rate of change, frequency of current changes- all this is on a randomized timeline. Constants are forward direction and gravity. This one also defines boundaries and gently alters reality to keep our guy in the picture.
I’d like to work more on this to allow the bg to move along with our graceful flyer. But not now.
[UPDATE 2009-06-04 00:32] Added the auto-scroll. It’s pretty sweet now. I’m happy with it. It now makes use of the ScrollTo jQuery plugin.
james on June 3rd, 2009

i want to learn kung fu
A day late and a dollar short as usual, I humbly present 2050, inspired by Steve’s story Software, as well as some fairly popular movie … what’s the name again?
james on June 2nd, 2009
Get ready to be bored! Experiment 20090601
My excuse for this one is that I had to watch a movie with the wife last night, and then I was too tired to do what I really wanted, plus I needed to teach myself color animation before I get to do the script I have in mind. There: 3 perfectly legit reasons for this boring production.
james on May 31st, 2009
FaceDance (this is a bookmarklet)
Instructions:
- Drag the link above to your ‘Favorites’ or ‘Bookmarks.’
- Login to Facebook.
- Click the ‘FaceDance’ bookmarklet.
james on May 31st, 2009
WFCAY
It has bugs that I’ll work out later. Gotta get to graduation. (This script is for yesterday, by the way)
[UPDATE 17:54] I fixed the ‘point’ bug which always had you being Point from The Point, but the application could use some improvements in general. For example, one of the questions is a 2 part question where you’d simultaneously want to answer ‘yes’ and ‘no.’ Ther is also the chance you’d have a tie, so there should be tiebreakers and stuff, but I don’t have time to retool it. It’s on to the next script and I’ll finally be caught up.