Pencil.js logo

Documentation

NPM Version

Welcome to the Pencil.js documentation page.

Get started

NPM

npm install pencil.js

CDN

import Pencil from "https://unpkg.com/pencil.js/dist/pencil.esm.js";

Usage

import { Scene, Triangle } from "https://unpkg.com/pencil.js/dist/pencil.esm.js";

const scene = new Scene();

const radius = 200;
const triangle = new Triangle(scene.center, radius);

scene
    .add(triangle)
    .render();

Links