Mom's Love Orbit Drawing

Mom's Love Orbit Drawing



SLAVE CODE FOLLOWS

<?php
header
('Content-Type: image/gif');

// === create background work area

// create a blank image
$imageWidth 500;
$imageHeight 360;
$image imagecreatetruecolor($imageWidth$imageHeight);

// color scheme
$background imagecolorallocate($image245247255);
$orbitColor imagecolorallocate($image160160190);
$deepBlue imagecolorallocate($image3065140);
$softPink imagecolorallocate($image255175205);
$brightPink imagecolorallocate($image25595145);
$red imagecolorallocate($image2203070);
$purple imagecolorallocate($image11570160);
$yellow imagecolorallocate($image25522590);
$white imagecolorallocate($image255255255);

// fill background
imagefilledrectangle($image00$imageWidth$imageHeight$background);

//draw an arc
imagearc($image2501803601900360$orbitColor);
imagearc($image2501802901350360$orbitColor);

//draw stars
$star1 = array(
    
5535,
    
6151,
    
7851,
    
6461,
    
7078,
    
5568,
    
4078,
    
4661,
    
3251,
    
4951
);

imagefilledpolygon($image$star110$yellow);

$star2 = array(
    
43045,
    
43661,
    
45361,
    
43971,
    
44588,
    
43078,
    
41588,
    
42171,
    
40761,
    
42461
);

imagefilledpolygon($image$star210$yellow);

$star3 = array(
    
420270,
    
425283,
    
439283,
    
428291,
    
432304,
    
420296,
    
408304,
    
412291,
    
401283,
    
415283
);

imagefilledpolygon($image$star310$yellow);

// draw mom's planet
imagefilledellipse($image250180150150$softPink);
imageellipse($image250180150150$purple);
imageellipse($image250180142142$white);

//draw heart
imagefilledellipse($image2261586262$red);
imagefilledellipse($image2741586262$red);

//draw center fill so the two top circles connect smoothly
imagefilledellipse($image2501777864$red);

//draw point for heart
$heartPoint = array(
    
197173,
    
303173,
    
250247
);

imagefilledpolygon($image$heartPoint3$red);

//add a small red bridge so the top of the heart connects cleanly
imagefilledellipse($image2501522822$red);

//draw circles for kids
imagefilledellipse($image982158888$brightPink);
imageellipse($image982158888$purple);

imagefilledellipse($image4101458888$deepBlue);
imageellipse($image4101458888$purple);

//font
$font 'fonts/arial.ttf';

//add text
imagettftext($image15, -107083$deepBlue$font'Love you to the moon and back');
imagettftext($image180210270$purple$font'Love, Mom');
imagettftext($image16071221$white$font'Ella');
imagettftext($image160376151$white$font'Brody');

//output
imagegif($image);
imagedestroy($image);
?>