Saturday, 18 February 2012




size(390,220);
background(250,250,250);

PFont font;
font=loadFont("Tunga-48.vlw");
fill(0);
textFont(font,20);
text("Institute of",60,10);
text("Business Administration",60,23);
text("Karachi",60,36);
textFont(font,12);
text("Leadership and Ideas for Tomorrow",1,48);
textFont(font,20);

text("Name     Yasini Karim Khan",80,75);
text("Father's Name       shaheen khan",80,95);
text("Class              BS(CS)",80,115);
text("Date of admission     August.2011",80,135);
textFont(font,18);
text("programmer officer",1,205);
text("Student's signature",200,205);

font=loadFont("Vivaldii-48.vlw");
textFont(font,30);
text("karimkhan",200,185);
font=loadFont("VladimirScript-48.vlw");
textFont(font,30);
text("manojbabulal",20,185);
line(200,190,320,190);
line(140,120,340,120);
line(190,150,340,150);
line(190,120,290,120);
line(210,100,340,100);
line(150,80,340,80);
rect(240,35,150,25);
fill(131,11,11);
stroke(255,255,255);
font=loadFont("TimesNewRomanPS-BoldMT-48.vlw");
textFont(font,12);
fill(255,255,255);
text("I B A",12,10);
fill(255,255,255);
textFont(font,16);
text("student's I.D.Card",260,52);
PImage b;
b = loadImage("download.jpg");
image(b, 7, 1);
PImage a;
a=loadImage("karimyasinic.jpg");
image(a,-3,50);
saveFrame();

Thursday, 16 February 2012


size(400,260);
background(250,250,250);

PFont font;
font=loadFont("Tunga-48.vlw");
fill(0);
textFont(font,20);
text("Institute of",60,10);
text("Business Administration",60,23);
text("Karachi",60,36);
textFont(font,12);
text("Leadership and Ideas for Tomorrow",1,48);
textFont(font,20);

text("Name     Yasini Karim Khan",80,75);
text("Father's Name       shaheen khan",80,95);
text("Class              BS(CS)",80,115);
text("Date of admission     August.2011",80,135);
textFont(font,18);
text("programmer officer",1,205);
text("Student's signature",200,205);

font=loadFont("Vivaldii-48.vlw");
textFont(font,20);
text("karimkhan",200,185);
font=loadFont("VladimirScript-48.vlw");
textFont(font,40);
text("manoch",30,185);
line(200,190,320,190);
line(140,120,340,120);
line(190,150,340,150);
line(190,120,290,120);
line(210,100,340,100);
line(150,80,340,80);
rect(240,35,150,25);
fill(131,11,11);
rect(1,1,50,40);
stroke(255,255,255);
line(1,15,49,15);
font=loadFont("TimesNewRomanPS-BoldMT-48.vlw");
textFont(font,12);
fill(255,255,255);
text("I B A",12,10);
fill(255,255,255);
textFont(font,16);
text("student's I.D.Card",260,52);
saveFrame();



int x=0;
int y=0;
int dx=1;
int dy=1;
void setup()
{
size(400,400);
}
void draw()
{
background(random(87),random(25),random(0));
fill(random(255),random(255),random(255));
rect(x,y,width/10,height/10);
x+=dx;
y+=dy;
if((x>=width||y>=height)||(x<=0||y<=0))
{
  dx=(-1)*dx;
dy=(-1)*dy;
}
}

Wednesday, 15 February 2012


karims new :)


int x1=0;
int x2=400;
int y1=0;
int y2=0;
int y3=400;
int dx=1;
int dy=1;
void setup()
{
size(400,400);
}
void draw()
{
   background(random(255),random(255),random(255));

fill(229,30,30);
ellipse(x1,y1,30,30);
x1+=dx;
y1+=dy;
if((x1>=width/2||y1>=height/2)||(x1<=0||y1<=0))
{
  dx=(-1)*dx;
  dy=(-1)*dy;
  }
  fill(30,299,31);
ellipse(x2,y2,30,30);
x2-=dx;
y2+=dy;

fill(30,41,299);
ellipse(x1,x2,30,30);
fill(23,23,13);
ellipse(x2,x2,30,30);
}

int x1=0;
int x2=400;
int y1=0;
int y2=0;
int dx=1;
int dy=1;
void setup()
{
size(400,400);
}
void draw()
{
   background(random(255),random(255),random(255));

fill(229,30,30);
ellipse(x1,y1,30,30);
x1+=dx;
y1+=dy;
if((x1>=width||y1>=height)||(x1<=0||y1<=0))
{
  dx=(-1)*dx;
  dy=(-1)*dy;
  }
ellipse(x2,y2,30,30);
x2-=dx;
y2+=dy;
}

size(400,400);
rect(0,0,50,50);
rect(50,50,50,50);
rect(0,350,50,50);
rect(50,300,50,50);
rect(350,0,50,50);
rect(300,50,50,50);
rect(350,350,50,50);
rect(300,300,50,50);
rect(175,175,50,50);
line(100,100,175,175);
line(100,300,175,225);
line(225,175,300,100);
line(225,225,300,300);
saveFrame();

size(600,600);
fill(232,233,250);
rect(50,150,400,300);
rect(450,200,100,200);
rect(100,450,200,100);
rect(50,50,200,100);
triangle(50,150,250,150,160,200);
triangle(200,400,300,450,100,450);
fill(255,255,255);
rect(60,200,350,200);
rect(70,210,320,180);
stroke(23,29,175);
line(90,210,90,390);
line(90,375,390,375);
line(370,390,370,210);

rect(95,215,30,40);
rect(130,215,30,40);
rect(290,215,30,40);
rect(330,215,30,40);
rect(260,210,10,150);
rect(270,340,50,10);
rect(270,310,70,10);
line(270,280,370,280);
line(280,210,280,280);
fill(0);
rect(290,370,20,5);
rect(365,300,5,20);
rect(300,275,20,5);
rect(275,235,5,20);

 void setup () {
  size(600,600);
  background(250,240,240);
}
float x = random(100,200);
void draw()
{
  fill(255);
  rectMode(CENTER);

  rect(width/2,(height/2)-(x/2),x,x/2);
  rect(width/2,(height/2)+(x/2),x,x/2);
  rect((width/2)+(x/2),height/2,x/2,x);
  rect((width/2)-(x/2),height/2,x/2,x);
  rect(width/2-x/4,height/2-x/4,x/2,x/2);
  rect(width/2+x/4,height/2-x/4,x/2,x/2);
  rect(width/2-x/4,height/2+x/4,x/2,x/2);
  rect(width/2+x/4,height/2+x/4,x/2,x/2);
}