Web Cube is a JavaScript package for creating and manipulating cubes in web applications. This package provides a simple and efficient API for working with three-dimensional cubes, allowing rotations, transformations, and rendering in a web environment.
- Create three-dimensional cubes.
- Apply rotations and transformations.
- Efficient rendering in the browser.
- Simple and easy-to-use API.
You can install the package using npm:
npm install @web-cube/webcube
or from JSR with Deno:
deno add jsr:@web-cube/webcube
or NPM:
npx jsr add @web-cube/webcube
Here's a simple example to get you started:
Add a JS file with the following
import { define } from "@web-cube/webcube";
define();
and a HTML with:
<web-cube></web-cube>
Also you can specify the size with the size
attribute:
<web-cube size="4"></web-cube>