GD library to extract colors and vector
Posted: Tue Jan 24, 2012 5:13 pm
I've never tried to do any graphics with PHP and I was wondering if this is impossible, hard or easy to do. I have a color coded gradient chart (GIF) that has a vector in the center. I need to detect the pixel color as well as the approximate angle of the vector (and it's color).
I've attached the image so you can see what I'm doing. The tiny vector is the blue line in the center and then the background color corresponds to it's magnitude. The vector will always be centered and I can use its color to determine which direction it is pointed.
thanks!
I've attached the image so you can see what I'm doing. The tiny vector is the blue line in the center and then the background color corresponds to it's magnitude. The vector will always be centered and I can use its color to determine which direction it is pointed.
thanks!