Silverfrost Forums

Welcome to our forums

Need help in correcting C-code with graphics.h in PLATO IDE

5 Jul 2017 1:01 #19827

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; }

5 Jul 2017 7:05 #19829

By default, the colours are RGB values so if you change from 5 to 255 (say) you will get red lines.

6 Jul 2017 3:20 #19833

Thank you. Its working now.

Regards, Aravind.

Please login to reply.