Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/caviar/src/entities/geometry/mod.ts>Polygon

⚡ Blazing fast, modern, Game Engine powered by WebGPU for Deno and the browser
Go to Latest
class Polygon
extends Entity
import { Polygon } from "https://deno.land/x/caviar@1.1.5/src/entities/geometry/mod.ts";

Constructors

new
Polygon(
x: number,
y: number,
points: Array<Point>,
fill: RGBA | string,
)

Properties

fill: RGBA
lines: Array<Line>
points: Array<Point>