Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] Line Box

Author
Message
lucifer 1101
15
Years of Service
User Offline
Joined: 26th Jan 2009
Location: Melbourne, Australia
Posted: 20th Mar 2009 07:02
heres my line box function, it draws a non filled box with a line thickness setting...

AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 20th Mar 2009 22:37 Edited at: 20th Mar 2009 22:40
That's a nice attempt, but that method doesn't really work, because it will always fill the inside of the box, and if you're drawing on a background that isn't black then it will become apparent.

I wrote a little box-drawing demo just now, you can take a look at it, maybe you'll learn a bit :



LineBox() draws a non-filled, line-only box.
LineBox2() does the same, but the line can have a thickness.
LineBoxFill() is the same as LineBox() but you can specify a fill color.
LineBox2Fill() is the same as LineBoxFill() but you can specify a line thickness.

lucifer 1101
15
Years of Service
User Offline
Joined: 26th Jan 2009
Location: Melbourne, Australia
Posted: 21st Mar 2009 00:51
ok cool thanks heaps...
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 21st Mar 2009 03:55
No problem.

Login to post a reply

Server time is: 2024-05-18 18:55:32
Your offset time is: 2024-05-18 18:55:32