$y1 = $center_pos_y + $offset_pos_y + ($radius - $gap_sign_glyph) * sin($angle_to_use); if ($i == 1 or $i == 5 or $i == 9) { $clr_to_use = $red; } elseif ($i == 2 or $i == 6 or $i == 10) { $clr_to_use = $green; } elseif ($i == 3 or $i == 7 or $i == 11) { $clr_to_use = $orange; } elseif ($i == 4 or $i == 8 or $i == 12) { $clr_to_use = $blue; } drawboldtext($im, 16, 0, $x1 + $center_pt, $y1 + $center_pt, $clr_to_use, HAMBURG_TTF, chr($sign_glyph[$i]), 1); } // ------------------------------------------ // put planets in chartwheel - person 1 - add planet glyphs around circle // sort longitudes in descending order from 360 down to 0 Sort_planets_by_descending_longitude($num_planets, $longitude1, $sort1, $sort_pos1); $flag = False; for ($i = $num_planets - 1; $i >= 0; $i--) { if ($ubt1 == 1 and $sort_pos1[$i] > SE_TNODE) { continue; } // $sort1() holds longitudes in descending order from 360 down to 0 // $sort_pos1() holds the planet number corresponding to that longitude $angle_to_use = deg2rad($sort1[$i] - $Ascendant1); // needed for placing info on chartwheel if ($flag == False) { display_planet_glyph1($angle_to_use, $radius - $dist_from_diameter1, $xy); } else { display_planet_glyph1($angle_to_use, $radius - $dist_from_diameter1b, $xy); } imagettftext($im, 16, 0, $xy[0] + $center_pt, $xy[1] + $center_pt, $planet_color1, HAMBURG_TTF, chr($pl_glyph[$sort_pos1[$i]]));
$y1 = ($radius - $dist_from_diameter1a) * sin($angle_to_use); $x2 = (-$radius + 6) * cos($angle_to_use); $y2 = ($radius - 6) * sin($angle_to_use); } else { $x1 = (-$radius + $dist_from_diameter1c) * cos($angle_to_use); $y1 = ($radius - $dist_from_diameter1c) * sin($angle_to_use); $x2 = (-$radius + 6) * cos($angle_to_use); $y2 = ($radius - 6) * sin($angle_to_use); } imageline($im, $x1 + $center_pt, $y1 + $center_pt, $x2 + $center_pt, $y2 + $center_pt, $black); $flag = !$flag; } // ------------------------------------------ // put planets in chartwheel - person 2 - add planet glyphs around circle // sort longitudes in descending order from 360 down to 0 Sort_planets_by_descending_longitude($num_planets, $longitude2, $sort2, $sort_pos2); $flag = False; for ($i = $num_planets - 1; $i >= 0; $i--) { // $sort2() holds longitudes in descending order from 360 down to 0 // $sort_pos2() holds the planet number corresponding to that longitude $angle_to_use = deg2rad($sort2[$i] - $Ascendant1); // needed for placing info on chartwheel if ($flag == False) { display_planet_glyph2($angle_to_use, $radius - $dist_from_diameter2, $xy); } else { display_planet_glyph2($angle_to_use, $radius - $dist_from_diameter2b, $xy); } imagettftext($im, 16, 0, $xy[0] + $center_pt, $xy[1] + $center_pt, $planet_color2, HAMBURG_TTF, chr($pl_glyph[$sort_pos2[$i]])); //draw line from planet to circumference if ($flag == False) { $x1 = (-$radius + $dist_from_diameter2a) * cos($angle_to_use);
$y1 = $center_pos_y + $offset_pos_y + ($radius - $gap_sign_glyph) * sin($angle_to_use); if ($i == 1 or $i == 5 or $i == 9) { $clr_to_use = $red; } elseif ($i == 2 or $i == 6 or $i == 10) { $clr_to_use = $green; } elseif ($i == 3 or $i == 7 or $i == 11) { $clr_to_use = $orange; } elseif ($i == 4 or $i == 8 or $i == 12) { $clr_to_use = $blue; } drawboldtext($im, 16, 0, $x1 + $center_pt, $y1 + $center_pt, $clr_to_use, HAMBURG_TTF, chr($sign_glyph[$i]), 1); } // ------------------------------------------ // put planets in chartwheel // sort longitudes in descending order from 360 down to 0 Sort_planets_by_descending_longitude($num_planets, $longitude, $sort, $sort_pos); // count how many planets are in each house Count_planets_in_each_house($num_planets, $sort, $sort_pos, $nopih, $spot_filled); $house_num = 0; // add planet glyphs around circle $flag = False; for ($i = $num_planets - 1; $i >= 0; $i--) { // $sort() holds longitudes in descending order from 360 down to 0 // $sort_pos() holds the planet number corresponding to that longitude $temp = $house_num; $house_num = floor($sort[$i] / 30) + 1; // get house (sign) planet is in if ($temp != $house_num) { // this planet is in a different house than the last one - this planet is the first one in this house, in other words $planets_done = 1; }