CodeBase - Line Function (works better than built-in command)
Return to the CodeBase listing
Category: Basic 2D
Version: 1.0
Information
Uploaded: 26th Jul 2007 05:28
Modified: 29th Jul 2007 18:50
Author: Libervurto
Summary
Draws a line using dots! Parameters: dline(left,top,right,bottom,space) (set to 1 for normal line and 2 for dotted)
Full Description
I was getting tired of the inaccuracy of lines drawn in DB, so I made my own function. It's surprisingly long and maybe I didn't do it the best way, but it works in all directions and is very accurate. There is a little bit of a tweak to avoid the dreaded "/0", but this can be done without that and I'll update it when I have the time, the update will be able to make dotted lines with custom dash length and space length.
Comments
No comments yet.