- Code: Select all
int i;
erase(0, 0, 0, .5);
for(i=0;i<width;i++){
setpen(255, i, 0, 0, 1);
moveto(i, 0);
lineto(i, height);
}
This is a small peice of code for an example, this draws an HP bar but when the HP is full, no matter how large or small I want it to stretch to the size of the canvas instead of increasing in size.
I wont forget again I PROMISE LOL