quad()

Quadrilateral - Draws a Quadrilateral with the given inputs

Example

quad(250,100,100,100,50,200,350,350)

Syntax

Input
Description

x1

x co-ordinate of the first corner (vertex 1)

y1

y co-ordinate of the first corner (vertex 1)

x2

x co-ordinate of the second corner (vertex 2)

y2

y co-ordinate of the second corner (vertex 2)

x3

x co-ordinate of the third corner (vertex 3)

y3

y co-ordinate of the third corner (vertex 3)

x4

x co-ordinate of the fourth corner (vertex 4)

y4

y co-ordinate of the fourth corner (vertex 4)

Description

Creates a quadrilateral with corners (vertices) at the given co-ordinates. Co-ordinates must be specified in clockwise or counter-clockwise direction, otherwise the resulting shape might not contain only one area.

circle-info

Find these documents helpful? Let the people who made them help your child learn to code at Strivematharrow-up-right!

We'd love to hear your Feedback/Comments herearrow-up-right.

Last updated