Homestar Runner Wiki Forum

A companion to the Homestar Runner Wiki
It is currently Thu Mar 28, 2024 6:25 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: My Reddit Alien Drawing
PostPosted: Tue Apr 22, 2008 6:00 am 
Offline
User avatar

Joined: Sun Apr 15, 2007 7:20 pm
Posts: 2321
Location: Strawberries. :[
I pretty much just finished my drawing. I wouldn't consider it finished, though. I still want to improve it as much as I can. For one, I want to try switching the body from an ellipse to two square root modeled curves attached to two line segments. I should probably make the feet a bit bigger. Anyways, what do you think of it?

Image

Code:
<?php

$im = imagecreate(300, 400);

$white = imagecolorallocate($im, 0xFF, 0xFF, 0xFF);
$black = imagecolorallocate($im, 0x00, 0x00, 0x00);
$orange = imagecolorallocate($im, 0xFD, 0x46, 0x00);

$thick = 10; //Border

//Feet
imageBorderedArc($im, 110, 330, 50, 50, 180, 0, $thick, $black, $white, false); //Left foot
imageBorderedArc($im, 200, 330, 50, 50, 180, 0, $thick, $black, $white, false); //Right foot

//Arms
//imageBorderedEllipse($im, 160, 220, 145, 80, $thick, $black, $white); One ellipse for the arm
imageBorderedEllipse($im, 120, 250, 60, 75, $thick, $black, $white); //Left arm
imageBorderedEllipse($im, 190, 250, 60, 75, $thick, $black, $white); //Right arm

//Body
   //Try square root modelled line?
imageBorderedEllipse($im, 155, 260, 100, 165, $thick, $black, $white); //Body

//Antennae
imageThickLine($im, 155, 95, 177, 50, 5, $black, 0); //Head --> Second Antennae
imageThickLine($im, 177, 50, 230, 60, 5, $black); //First Antennae --> Bobble
imageBorderedEllipse($im, 230, 60, 35, 35, $thick, $black, $white); //Bobble

//Head
imageBorderedEllipse($im, 75, 130, 50, 50, $thick, $black, $white); //Left ear
imageBorderedEllipse($im, 235, 130, 50, 50, $thick, $black, $white); //Right ear
imageBorderedEllipse($im, 155, 155, 195, 125, $thick, $black, $white); //Head
imageFilledEllipse($im, 120, 150, 30, 30, $orange); //Left Eye
imageFilledEllipse($im, 195, 150, 30, 30, $orange); //Right Eye
imageBorderedEllipse($im, 160, 190, 80, 20, $thick, $black, $white); //Smile p1
imageFilledRectangle($im, 118, 175, 200, 189, $white); //Smile p2 CHEATING CHEATING CHEATING

//Cleanup
imageFilledRectangle($im, 94, 330, 232, 356, $white);
imageThickLine($im, 86, 330, 224, 330, 3, $black);

header('Content-type: image/png');
imagepng($im);
imagedestroy($im);

function imageThickLine($image, $x1, $y1, $x2, $y2, $border, $colour, $toRight = -1){
   if($y1 == $y2 || $toRight == 1){
      for($i = 0; $i <= $border; $i++) imageline($image, $x1, $y1+$i, $x2, $y2+$i, $colour);
   }elseif($x1 == $x2 || $toRight == 0){
      for($i = 0; $i <= $border; $i++) imageline($image, $x1+$i, $y1, $x2+$i, $y2, $colour);
   }else{
      for($i = 0; $i <= $border; $i++) imageline($image, $x1+$i, $y1+$i, $x2+$i, $y2+$i, $colour);
   }
}

function imageBorderedEllipse($image, $cx, $cy, $width, $height, $border, $borderColor, $fillColor){
   imagefilledellipse($image, $cx, $cy, $width, $height, $borderColor);
   imagefilledellipse($image, $cx, $cy, $width - $border, $height - $border, $fillColor);
}

function imageBorderedArc($image, $cx, $cy, $width, $height, $start, $end, $border, $borderColor, $fillColor, $fullBorder = true, $bitWise = IMG_ARC_PIE){
   imagefilledarc($image, $cx, $cy, $width, $height, $start, $end, $borderColor, $bitWise);
   imagefilledarc($image, $cx, $cy, $width-$border, $height-$border, $start, $end, $fillColor, $bitwise);
   if($fullBorder){
      $border /= 2;
      for($i = 0; $i <= $border; $i++) imageline($image, $cx - ($width/2) + 1, $cy + 1 + $i, $cx + ($width/2) - 1, $cy + $i + 1, $borderColor);
   }
}

?>


Top
 Profile  
 
 Post subject: Re: My Reddit Alien Drawing
PostPosted: Tue Apr 22, 2008 1:17 pm 
Offline
User avatar

Joined: Wed Apr 04, 2007 3:59 pm
Posts: 1977
Location: In your pantry. Good cookies by the way.
Wow...you made that all with script? That's pretty sweet! :D

_________________
Image


Top
 Profile  
 
 Post subject: Re: My Reddit Alien Drawing
PostPosted: Thu Apr 24, 2008 1:47 pm 
Offline
User avatar

Joined: Sun Apr 15, 2007 7:20 pm
Posts: 2321
Location: Strawberries. :[
Thanks. Looking back, it wasn't really that hard to make. It was just getting everything correctly positioned that was hard.


Top
 Profile  
 
 Post subject: Re: My Reddit Alien Drawing
PostPosted: Fri Apr 25, 2008 12:39 am 
Offline

Joined: Tue May 24, 2005 4:58 pm
Posts: 5045
Location: Imagining all the people living life in peace.
Why did you call the variable orange when his eyes are clearly red?

_________________
So, so you think you can tell Heaven from Hell, blue skies from pain. Can you tell a green field from a cold steel rail? A smile from a veil? Do you think you can tell?


Top
 Profile  
 
 Post subject: Re: My Reddit Alien Drawing
PostPosted: Fri Apr 25, 2008 9:08 pm 
Offline
User avatar

Joined: Sun Apr 15, 2007 7:20 pm
Posts: 2321
Location: Strawberries. :[
Puh-lease, they're clearly orange. Therefore $orange.


Top
 Profile  
 
 Post subject: Re: My Reddit Alien Drawing
PostPosted: Thu May 29, 2008 10:20 pm 
Offline
User avatar

Joined: Mon Sep 24, 2007 9:52 pm
Posts: 620
Location: I left the H*RWF. Goodbye, everybody.
MikeMcG wrote:
Puh-lease, they're clearly orange. Therefore $orange.

It's more of a red-ish orange color, not pure orange. Anyway, this picture is awesome!

_________________
Until the Off-Subject boards are here again, I won't be. Goodbye.


Top
 Profile  
 
 Post subject: Re: My Reddit Alien Drawing
PostPosted: Fri May 30, 2008 11:08 pm 
Offline
User avatar

Joined: Sat Mar 15, 2008 3:49 am
Posts: 359
Location: ramrod is pathetic
Looks like what one of those LGM's from Buzz Lightyear: Star Command...with red-orange eyes.

_________________
Choc-o-Lardiac Arrest wrote:
Holy crap, are we in an episode of Blues Clues or somethin?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group