@web-cube/web-cube
v0.7.0
Published
A web component to display a 3D rubik's cube
Downloads
28
Readme
Web Cube
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.
Features
- Create three-dimensional cubes.
- Apply rotations and transformations.
- Efficient rendering in the browser.
- Simple and easy-to-use API.
Installation
You can install the package using npm:
npm install @web-cube/webcubeor from JSR with Deno:
deno add jsr:@web-cube/webcubeor NPM:
npx jsr add @web-cube/webcubeQuickstart
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>