draw_line


Description:

public void draw_line (int x1, int y1, int x2, int y2, Color c)

Draws a line on the current context from the starting coordinates to the ending coordinates using the specified color.

For horizontal and vertical lines, see draw_hline and draw_vline.

Parameters:

x1

starting X coordinate

y1

starting Y coordinate

x2

ending X coordinate

y2

ending Y coordinate

c

the color


Namespace: Grx
Package: grx-3.0