void Draw(int R, int G, int B, double TRANS, double VAR) {
int i, i2;
erase(0, 0, 0, 1); //Empty the canvas
setpen(R,G,B,TRANS,1);
for(i2=0;i2<250;i2++){
setpen(0, 0, 0, 0, 1);
moveto(i2, 0);
lineto(i2, 12);
}
for(i=0;i<VAR;i++) {
moveto(i, 0);
setpen(R+(255/250), G+(255/250), B+(255/250), TRANS, 1);
lineto(i, 12);
}
}
LENGTH=(HPX/MAXHP);
Draw(150, 0, 0, 0, LENGTH);
LENGTH=(HPX/MAXHP)*250;
void
draw (int R, int G, int B, double TRANS, double VAR)
{
int i;
erase(0, 0, 0, 1); //Empty the canvas
setpen(R,G,B,TRANS,1);
setpen(0, 0, 0, 0, 1);
for(i=0;i<12;i++)
{
moveto(0, i);
lineto(250, i);
}
setpen(R+(255/250), G+(255/250), B+(255/250), TRANS, 1); // what?
for(i=0;i<12;i++)
{
moveto(0, i);
lineto(VAR, i);
}
}
skydereign wrote:and since I honestly can't stand your bracket placement I changed that as well.
SuperSonic wrote:skydereign wrote:and since I honestly can't stand your bracket placement I changed that as well.
Haha yes. I get really annoyed when I see people online put there brackets like that
No offense to you Hblade of course =D
statement //The bit of code above the bracket
{
code //indented to make it easier to keep track of
}
Hblade wrote:xD Alrighty, traditional it is :3
Users browsing this forum: No registered users and 1 guest