ImJustBrndn Posted August 20, 2006 Share Posted August 20, 2006 The image at http://joekral.needshelp.org/gauge/30000/18012can be displayed with a filling bar, if you change the last set of number it automatically fills in the bar.Example:[img]http://joekral.needshelp.org/gauge/30000/18012[/img][img]http://joekral.needshelp.org/gauge/30000/25000[/img]If this is PHP could someone maybe point me in the right direction to do this.B Quote Link to comment Share on other sites More sharing options...
trq Posted August 20, 2006 Share Posted August 20, 2006 Could be any number of languages, but yes its doable with php. Check the [url=http://php.net/gd]gd[/url] library. Quote Link to comment Share on other sites More sharing options...
ShogunWarrior Posted August 20, 2006 Share Posted August 20, 2006 I imagine there are three images for the fill bar:* The left hand side right part to fit the curve.* A 1px wide red strip that is stretched across.* The right hand red curve that is drawn at the end of the fill bar.It wouldn't be too hard to see this implemented in PHP with GD, yup. Quote Link to comment Share on other sites More sharing options...
ImJustBrndn Posted August 20, 2006 Author Share Posted August 20, 2006 What exactly is GD, I'm totally new to php and would like to create something like this, but I think it might be a wee bit above my level at the moment. Any suggestions would be very helpful. Quote Link to comment Share on other sites More sharing options...
AndyB Posted August 20, 2006 Share Posted August 20, 2006 What is GD? A graphics library, frequently compiled with php by good web hosting companies. Details in the link in Thorpe's post.Before you dig too deeply ... do you actually have GD installed on your web server? Quote Link to comment Share on other sites More sharing options...
ImJustBrndn Posted August 20, 2006 Author Share Posted August 20, 2006 Yes, I have it installed version gd-2.0.33. I'm just really new to the whole php thing, and really never know where to start. Do a lot of my learning from looking at something that is already made and picking it apart.B Quote Link to comment Share on other sites More sharing options...
AndyB Posted August 20, 2006 Share Posted August 20, 2006 Here's a gentle phpfreaks tutorial - http://www.phpfreaks.com/tutorials/105/1.php Quote Link to comment Share on other sites More sharing options...
ImJustBrndn Posted August 20, 2006 Author Share Posted August 20, 2006 Thanks a lot guys, after going through about 30 pages of searchs on the site I found this other post that no one ever responded too.http://www.phpfreaks.com/forums/index.php/topic,102840.0.htmlIt has a complete script in it from another site that shows you how to do an image just like this. The image it has in it is [img]http://www.entropyfarm.org/software/thermo/thermo.php?max=3000¤t=1200[/img]So if anyone is interested there you go, thanks for the extensive help everyone.B Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.