Virtual Method

PurpleWhiteboarddraw_line

since: 2.0

Declaration [src]

void
draw_line (
  PurpleWhiteboard* whiteboard,
  int x1,
  int y1,
  int x2,
  int y2,
  int size,
  int color
)

Description [src]

Draws a line on whiteboard with the given parameters.

Available since: 2.0

Parameters

x1

Type: int

The top-left x coordinate.

y1

Type: int

The top-left y coordinate.

x2

Type: int

The bottom-right x coordinate.

y2

Type: int

The bottom-right y coordinate.

size

Type: int

The brush size.

color

Type: int

The color to use.