Example #1
0
        $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 - transits - add planet glyphs around circle
// sort longitudes in descending order from 360 down to 0
Sort_planets_by_descending_longitude_transits($num_planets, $longitude2, $sort2, $sort_pos2);
$flag = False;
for ($i = $num_planets - 1 - 4; $i >= 0; $i--) {
    if ($ubt2 == 1 and $sort_pos2[$i] > SE_TNODE) {
        continue;
    }
    // $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]]));
Example #2
0
        $y1 = ($radius - $dist_from_diameter2a) * sin($angle_to_use);
        $x2 = (-$radius + 6) * cos($angle_to_use);
        $y2 = ($radius - 6) * sin($angle_to_use);
    } else {
        $x1 = (-$radius + $dist_from_diameter2c) * cos($angle_to_use);
        $y1 = ($radius - $dist_from_diameter2c) * 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 - transits - add planet glyphs around circle
// sort longitudes in descending order from 360 down to 0
Sort_planets_by_descending_longitude_transits($num_planets, $longitude3, $sort3, $sort_pos3);
$flag = False;
for ($i = $num_planets - 1 - 4; $i >= 0; $i--) {
    if ($sort_pos3[$i] > SE_TNODE) {
        continue;
    }
    // $sort3() holds longitudes in descending order from 360 down to 0
    // $sort_pos3() holds the planet number corresponding to that longitude
    $angle_to_use = deg2rad($sort3[$i] - $Ascendant1);
    // needed for placing info on chartwheel
    if ($flag == False) {
        display_planet_glyph($angle_to_use, $radius - $dist_from_diameter3, $xy);
    } else {
        display_planet_glyph($angle_to_use, $radius - $dist_from_diameter3b, $xy);
    }
    imagettftext($im, 16, 0, $xy[0] + $center_pt, $xy[1] + $center_pt, $planet_color3, HAMBURG_TTF, chr($pl_glyph[$sort_pos3[$i]]));