Frame??

New to FreeBASIC? Post your questions here.
Post Reply
HillbillyGeek
Posts: 50
Joined: Oct 27, 2011 1:51
Location: Texas
Contact:

Frame??

Post by HillbillyGeek »

I don't want someone to write it for me I'm just asking for a nudge........ I want to write an application that quickly draws a frame around the outer border of the screen.......that's all.....nothing else. Can I get a tip from someone......or even a 'look here' tip?
exagonx
Posts: 315
Joined: Mar 20, 2009 17:03
Location: Italy
Contact:

Re: Frame??

Post by exagonx »

HillbillyGeek wrote: Feb 28, 2022 20:00 I don't want someone to write it for me I'm just asking for a nudge........ I want to write an application that quickly draws a frame around the outer border of the screen.......that's all.....nothing else. Can I get a tip from someone......or even a 'look here' tip?
the good way is graphical .

Code: Select all



screen 12 ' Set Screen resoluto to 640 x 480 for 256K color for 16 Attributes
Line (1,1)-(639,479), 12,b   ' make the 1° square  
Line (2,2)-(638,478), 12,b   ' make the 2° square

Line (4,4)-(636,476), 6,b  ' make the 3° square 
Line (5,5)-(635,475), 6,b  ' make the 4° square
sleep  ' pause until key pressed  this keep the program open instead close it

dodicat
Posts: 7983
Joined: Jan 10, 2006 20:30
Location: Scotland

Re: Frame??

Post by dodicat »

Picture frame like maybe.

Code: Select all

Screen 19,32
Color ,Rgb(0,100,255)
Cls
For k As Long=0 To 25
    Line(k,k)-(800-k,600-k),Rgb(255-k*8,0,0),b
Next k
Sleep 
HillbillyGeek
Posts: 50
Joined: Oct 27, 2011 1:51
Location: Texas
Contact:

Re: Frame??

Post by HillbillyGeek »

Very helpful!!
Post Reply