Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 639 Bytes

readme.md

File metadata and controls

29 lines (19 loc) · 639 Bytes

Visual Log

Log geometric data to the browser console.

Installation

npm i visual-log

Usage

  • id(newId: string) the following objects will be added to the image with the id newId
  • color(newColor: string) the following objects will be of color newColor
  • arrow(from: Vec3, to: Vec3) add an arrow to the current image
  • lineSegment(from: Vec3, to: Vec3) add a line segment to the current image

Example

import * as vlog from "visual-log";

vlog.arrow([0, 0, 0], [3, 0, 3]);
vlog.lineSegment([1, 0, 0], [4, 0, 1]);

This outputs the following image to the console:

output