Totally Stuck - GD Heatmap
Moderator: General Moderators
-
HavokDelta6
- Forum Newbie
- Posts: 16
- Joined: Mon Sep 28, 2009 4:11 pm
Totally Stuck - GD Heatmap
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Last edited by HavokDelta6 on Tue Mar 20, 2012 5:59 am, edited 1 time in total.
Re: Totally Stuck - GD Heatmap
I would setup an array of colors. Red being highest, blue being lowest, or however you decided you want higher elevations to be discerned from lower elevations.
Then run through your array, replace the higher numbers with the red/redish colors and the lower numbers with the lower/lower colors for each point on a new graphic image.
Take a look at this function: http://www.php.net/manual/en/function.imagesetpixel.php
You can go through pixel by pixel and set the appropriate color for that x,y coord.
Then run through your array, replace the higher numbers with the red/redish colors and the lower numbers with the lower/lower colors for each point on a new graphic image.
Take a look at this function: http://www.php.net/manual/en/function.imagesetpixel.php
You can go through pixel by pixel and set the appropriate color for that x,y coord.