0.1.3 • Published 2 years ago

visual-log v0.1.3

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

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

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago