LineForward

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
einander
Enthusiast
Enthusiast
Posts: 744
Joined: Thu Jun 26, 2003 2:09 am
Location: Spain (Galicia)

LineForward

Post by einander »

For the 2D Drawing Library: a procedure to draw a line from X,Y with length L, and angle A:

LineForward(x,y,Lenght,Angle,[Relative])

The [Relative] optional parameter adds the angle to the last used.