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/DBC] Line thickness

Author
Message
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 2nd Oct 2008 22:52
Draw lines with any thickness. Probably not the most efficient as very thick lines would likely redraw pixels that it doesn't need to redraw.




Irojo
15
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 29th Oct 2008 20:10
That's really cool!!!


I download memory.
kaedroho
16
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 2nd Nov 2008 23:32
theres gotta be a faster way, instead of drawing alot of boxes (which overlap quite alot), you could try and come up with a solution which uses the dot command and get rid of the overlapping boxes (this could increase the speed by quite a bit).


Games, Code, 3D Models and more! click here
Kohaku
19
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 4th Nov 2008 11:16
Iirc, box is faster than dot.


You are not alone.
Caleb1994
15
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 16th Jan 2009 06:46
couldn't you use line and just do a series of lines side by side to make it thicker? i havn't tested it but it sounds rite in my head lol doesn't say much though
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 17th Jan 2009 12:23
Quote: "couldn't you use line and just do a series of lines side by side to make it thicker? i havn't tested it but it sounds rite in my head lol doesn't say much though"


It works, but it's slower...

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 27th Jan 2009 13:13
If you're using DBP you can use lock pixels to achieve a much faster dot rate.

Login to post a reply

Server time is: 2024-05-02 13:04:13
Your offset time is: 2024-05-02 13:04:13