Piccolo.NET

PPath.CreateRectangle Method 

Creates a new PPath with the shape of the rectangle specified by the given dimensions.

public static PPath CreateRectangle(
   float x,
   float y,
   float width,
   float height
);

Parameters

x
The x-coordinate of the top left corner of the rectangle.
y
The y-coordinate of the top left corner of the rectangle.
width
The width of the rectangle.
height
The height of the rectangle.

Return Value

The new PPath node.

See Also

PPath Class | UMD.HCIL.Piccolo.Nodes Namespace