Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Library for Clipper - <b>l_line()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_LINE()


Syntax:        L_LINE(<expN1>,<expN2>,<expN3>,<expN4>, <expN5>)


Purpose:       To draw a graphics line on the screen.


Arguments:     <expN1> is the x co-ordinate of the starting point of
               the line.

               <expN2> is the y co-ordinate of the starting point of
               the line.

               <expN3> is the x co-ordinate of the end point of the line.

               <expN4> is the y co-ordinate of the end point of the line.

               <expN5> is the color code number representing the color
               of the line.


Returns:       Nothing.


Usage:         Useful for adding graphics effects to output.


Examples:      Sample code to draw a shaded box on the screen

               count = 0
               startx = 52
               starty = 50
               endx = 50

               endy = 52
               linecolor = 1
               L_GMODE(4)

               DO WHILE count < 20
                  L_LINE(startx,starty,endx,endy,linecolor)
                  startx = startx + 3
                  endy = endy + 3
                  count = count + 1
               ENDDO

               count = 0
               DO WHILE count < 21
                  L_LINE(startx,starty,endx,endy,linecolor)
                  starty = starty + 3
                  endx = endx + 3
                  count = count + 1
               ENDDO


Language:      C

See Also: L_GMODE() L_BOX() L_BOXFIL() L_CIRCLE() L_CIRCLF()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson