View Single Post
Old 06-22-2004, 07:33 AM   #2 (permalink)
aland
Registered User
 
Join Date: Jun 2004
Posts: 1
aland is on a distinguished road
Post A example

/* Draw X--Y */
/* Base Point is x,y */
/* X long is X_long */
/* Y long is Y_long */
/* j is: 0 x+ Y+ ; 1 x+- y+- */
/* */
void draw_XY(float x,float y,float X_long,float Y_long)
{
time_t t;
time(&t);
setcolor(GREEN);
settextstyle(5,HORIZ_DIR,2);
outtextxy(x+X_MOVE-10,y+Y_MOVE+3,"0,0");
outtextxy(15,10,"By:Aland WooSon");
outtextxy(15,25,"Made Date:1999,9,18");
setcolor(RED);
line(x * BIGGER+ X_MOVE ,y* BIGGER + Y_MOVE ,(x+X_long)* BIGGER + X_MOVE ,y* BIGGER + Y_MOVE );
/* Draw_X */
line(x * BIGGER+ X_MOVE ,(y+Y_long)* BIGGER+ Y_MOVE ,x* BIGGER + X_MOVE ,-(y+Y_long)* BIGGER + Y_MOVE );
/* Draw_Y */
setcolor(GREEN);
settextstyle(5,HORIZ_DIR,2);
outtextxy(15,430,"Use time:");
setcolor(WHITE);
outtextxy(90,430,ctime(&t));
rectangle(20,447,620,460);
outtextxy( 180, 450, "Esc aborts or press a key for next..." );
}
aland is offline   Reply With Quote