Changeset 578 for trunk/web2/addons/job_monarch/libtoga.php
- Timestamp:
- 02/03/09 17:11:41 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web2/addons/job_monarch/libtoga.php
r577 r578 34 34 $this->restvars = array(); 35 35 36 $this->clustername = $httpvars[ "c"] ? $httpvars["c"] : $getvars["c"];37 $this->metricname = $httpvars[ "m"] ? $httpvars["m"] : $getvars["m"];36 $this->clustername = $httpvars['c'] ? $httpvars['c'] : $getvars['c']; 37 $this->metricname = $httpvars['m'] ? $httpvars['m'] : $getvars['m']; 38 38 39 39 if( count( $httpvars ) > 0 ) … … 1233 1233 // determine the offset between colors 1234 1234 // 1235 $step_offset = array("r" => ($background[ "r"] / $ds_steps), "g" => ($background["g"] / $ds_steps), "b" => ($background["b"] / $ds_steps));1235 $step_offset = array("r" => ($background['r'] / $ds_steps), "g" => ($background['g'] / $ds_steps), "b" => ($background['b'] / $ds_steps)); 1236 1236 1237 1237 // calculate and allocate the needed colors … … 1241 1241 for ($i = 0; $i <= $ds_steps ; $i++) 1242 1242 { 1243 $colors[$i] = imagecolorallocate($this->image, round($current_color[ "r"]), round($current_color["g"]), round($current_color["b"]));1244 1245 $current_color[ "r"] -= $step_offset["r"];1246 $current_color[ "g"] -= $step_offset["g"];1247 $current_color[ "b"] -= $step_offset["b"];1243 $colors[$i] = imagecolorallocate($this->image, round($current_color['r']), round($current_color['g']), round($current_color['b'])); 1244 1245 $current_color['r'] -= $step_offset['r']; 1246 $current_color['g'] -= $step_offset['g']; 1247 $current_color['b'] -= $step_offset['b']; 1248 1248 } 1249 1249
Note: See TracChangeset
for help on using the changeset viewer.