Programmer

Wahhh, what a week.
I have just completed my OOPM assignment. Just handed it in online.
I created this all using codes



Heres the code,



package
{
import flash.display.Sprite;

public class Repetition extends Sprite
{
public function Repetition()
{
//Scale
var scale: Number = 0.25
//Variables
var x:int = 30;
var y:int = 20;
// Loop
for (x=30; x<500; x+=200){
for (y=20; y<500; y+=200){


graphics.lineStyle(3);
graphics.drawRoundRect(x-10*scale, y+5*scale, 520*scale,200*scale, 30*scale, 30*scale)

//Left Eye
graphics.moveTo(x+30*scale, y+20*scale)
graphics.lineTo(x+30*scale, y+100*scale)

//Right Eye
graphics.moveTo(x+470*scale, y+20*scale)
graphics.lineTo(x+470*scale, y+100*scale)

//Mouth
graphics.drawRoundRect(x+30*scale, y+140*scale, 440*scale,40*scale, 30*scale, 30*scale)

//Body
graphics.drawRect(x+40*scale, y+220*scale, 420*scale, 200*scale)

//Right Arm
graphics.drawRoundRect(x-10*scale, y+220*scale, 40*scale, 200*scale, 30*scale, 30*scale)

//Left Arm
graphics.drawRoundRect(x+470*scale, y+220*scale, 40*scale, 200*scale, 30*scale, 30*scale)
}
}
}

}
}


Two words, Not easy.

My graded assignment for OOPM is,
to design an artwork through coding for some external organization and then submit it in as an entry. If my artwork gets selected and if i win the competition, the grand prize would be 1000 bucks. Yep, sambil menyelam minum air beb.

K la i need to study for my maths quiz tomorrow.
Matrices. pfft.