in reply to Drawing lines and circles
Really, there's been decades of research into graphic algorithms -- all you have to do is google for them.
try these for a start:- Line drawing algorithm Line drawing algorithm or Bresenham's_line_algorithm
Bresenham's is good and simple to implement.
|
---|
In Section
Seekers of Perl Wisdom