Home > PHP > Function > > HaruPage::rectangle()

HaruPage::rectangle()

HaruPage::rectangle - Append a rectangle to the current path

Syntax

bool HaruPage::rectangle (float $x, float $y, float $width, float $height)

Arguments

  • x - The left border of the rectangle.
  • y - The lower border of the rectangle.
  • width - The width of the rectangle.
  • height - The height of the rectangle.

Description

Appends a rectangle to the current drawing path.

Version

PHP PECL haru >= 0.0.1

Return value

Returns TRUE on success.