Commit 3a9e39dc authored by Feu's avatar Feu

test

parent b8a35e86
......@@ -237,7 +237,7 @@ class galaxy
$img = imagecreatetruecolor($this->width/50,$this->height/50);
$bg = imagecolorallocate($img, 0, 0, 0);
imagefill($img, 0, 0, $bg);
$req = new requete($this->db, "SELECT FLOOR(rx_star/100),FLOOR(ry_star/100),SUM(sum_tense_star) FROM galaxy_star GROUP BY FLOOR(rx_star/50),FLOOR(ry_star/50)");
$req = new requete($this->db, "SELECT FLOOR(rx_star/50),FLOOR(ry_star/50),SUM(sum_tense_star) FROM galaxy_star GROUP BY FLOOR(rx_star/50),FLOOR(ry_star/50)");
while ( list($x,$y,$d) = $req->get_row() )
imagesetpixel($img,$x,$y,$this->star_color($img,$d));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment