Skip to content

Latest commit

 

History

History

triangle

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Triangle

Regular triangle shape, if you want to draw a random shape with 3 points, use Polygon instead.

Triangle example

Examples

import { Triangle } from "pencil.js";

const position = [100, 200];
const radius = 99;
const options = {
    fill: "blue"
};
const triangle = new Triangle(position, radius, options);

RectangleOptions

Inherit from RegularPolygonOptions.

Triangle have no specific options.