parallelogram

open fun parallelogram(bounds: Rectangle, angle: Angle = 30.degrees, direction: Boolean = true)

Creates a parallelogram where the inner part is within bounds.

An angle of 0.degrees, creates a rectangle. While an angle of 90 creates a shape with a line of 45 degrees. Negative angles create a parallelogram those bounds instead of being inner, are outer.

direction = true __________ / / /________/

direction = false

\
\________\