forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato
View previous topic :: View next topic  
Author Message
aravindakumar.k



Joined: 04 Jul 2017
Posts: 2

PostPosted: Wed Jul 05, 2017 2:01 am    Post subject: Need help in correcting C-code with graphics.h in PLATO IDE Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 5043
Location: Salford, UK

PostPosted: Wed Jul 05, 2017 8:05 am    Post subject: Reply with quote

By default, the colours are RGB values so if you change from 5 to 255 (say) you will get red lines.
Back to top
View user's profile Send private message
aravindakumar.k



Joined: 04 Jul 2017
Posts: 2

PostPosted: Thu Jul 06, 2017 4:20 am    Post subject: Reply with quote

Thank you. Its working now.

Regards,
Aravind.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group