--- trunk/tntnet/dynamic/temperaturegraph.ecpp 2007/12/01 21:00:58 119 +++ trunk/tntnet/dynamic/temperaturegraph.ecpp 2007/12/02 08:49:18 120 @@ -21,9 +21,16 @@ GD::Image image; image.CreateTrueColor( GD::Size(600,350)); -GD::TrueColor green(45,95,0); -GD::TrueColor text(200,200,200); -GD::TrueColor red(255,0,0); +//Black color scheme +//GD::TrueColor decoration(45,95,0); +//GD::TrueColor text(200,200,200); +//GD::TrueColor line(255,0,0); + +//White color scheme +image.Fill( GD::Point(1,1), GD::TrueColor(255,255,255).Int() ); +GD::TrueColor decoration(60,60,60); +GD::TrueColor text(0,0,0); +GD::TrueColor line(255,0,0); image.String(gdFontSmall, 250,5, "Temperature graph", text.Int()); @@ -33,7 +40,7 @@ std::stringstream marker; marker << (100- (i*10)); int y = (i*30) + 25; - image.Line( 30, y, 590, y, green.Int()); + image.Line( 30, y, 590, y, decoration.Int()); image.String(gdFontSmall, 5, y-7, marker.str().c_str(), text.Int()); @@ -60,12 +67,12 @@ int x = (i*28) + 40; int y = ((100-current) * 3) + 25; - //image.FilledArc( GD::Point(x,y), GD::Size(3,3), 0, 360, red.Int(), gdPie); - image.FilledRectangle( GD::Point(x-1,y-1), GD::Point(x+1,y+1), red.Int() ); + //image.FilledArc( GD::Point(x,y), GD::Size(3,3), 0, 360, line.Int(), gdPie); + image.FilledRectangle( GD::Point(x-1,y-1), GD::Point(x+1,y+1), line.Int() ); if (i>0) { - image.Line( GD::Point(x,y), previous, red.Int()); + image.Line( GD::Point(x,y), previous, line.Int()); } previous = GD::Point(x,y);