View previous topic :: View next topic |
Author |
Message |
aravindakumar.k
Joined: 04 Jul 2017 Posts: 2
|
Posted: Wed Jul 05, 2017 2:01 am Post subject: Need help in correcting C-code with graphics.h in PLATO IDE |
|
|
Hello everyone.
I am new to FTN95. I am using this PLATO IDE software to write a C-code. I am using graphics.h library. But, my simple program of drawing a line is not giving any output. Can any one help me in correcting the below program?
Thanks in advance.
Regards,
Aravind.
Code:
#include<stdio.h>
#include<DBOS/CONIO.H>
#include<DBOS/GRAPHICS.H>
#include<lib.h>
int main()
{
clear_screen();
vga();
draw_line(0, 0, 200, 200,5);
draw_line(10, 10, 20, 20,5);
return 0;
} |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7930 Location: Salford, UK
|
Posted: Wed Jul 05, 2017 8:05 am Post subject: |
|
|
By default, the colours are RGB values so if you change from 5 to 255 (say) you will get red lines. |
|
Back to top |
|
|
aravindakumar.k
Joined: 04 Jul 2017 Posts: 2
|
Posted: Thu Jul 06, 2017 4:20 am Post subject: |
|
|
Thank you. Its working now.
Regards,
Aravind. |
|
Back to top |
|
|
|