Some GD math graphics

sine AND

I was teaching some PHP and was looking at the GD library for creating various graphs. One thing leads to another and I found an interesting post by chris at drunkenpirates dot co dot uk on this page.

Since drawing pixels to the screen is something I do a lot - (e.g. gp2x, gameboy advance, processing, Pd and so on) - I couldn’t resist playing with this.

I made a few changes to the original script and then decided to add a choice of functions and a choice of operations.

The result … well you can try it yourself here.

I like it and have already saved some for desktop graphics but you know me… I like math based graphics - your mileage may vary! Here’s some more screen shots:

ArcTan AND

cosine OR

sine DIVIDE

sine OR

tan DIVIDE

0 Responses to “Some GD math graphics”


  1. No Comments

Leave a Reply