VueXYZ
!
cover.png
$3
VueXYZ is a collection of Vue composables for creative coding. Unlike other creative coding libraries that simplify rendering to a canvas, VueXYZ doesn't render anything for you. Instead, the composables return reactive data that you can use as you see fit.
You may decide to take the data and render it to canvas or SVG, or you might use it to drive animations, or anything else. You could chain multiple composables together to create complex shapes or compounded effects. The choice is yours.
$3
π Features
- π Composables for 2D primitives like circles, triangles, pentagons, etc.
- β¨ Additional non-polygonal primitives like arcs, bΓ©zier curves, etc.
- π Composables return reactive data for
vertices,
edges,
faces, etc.
- π Helpers for rendering primitives to
SVG,
canvas and
Three/Tres
- ποΈ Utility methods for performing calculations on primitive data.
- π₯ Built for the
Vue 3 Composition API.
- β‘
Fully tree shakeable: Only use the composables you care about.
- π Type strong with
TypeScript.
- π¨ Detailed
documentation & interactive demos for all primitives.
Example Usage
``
js
const { vertices, edges, faces } = useTriangle({ sideLength: 100})
// vertices: [ { x, y, z }, { x, y, z }, { x, y, z } ... ]
`
π¦ Install
Install VueXYZ with just a single line in your project:
`
bash
npm install vuexyz
``
Links
-
Getting Started
-
Interactive Demos
-
Chat on Discord
---
π License
Copyright (c) 2024 Simon Le Marchant _(Marchant Web, LLC.)_
VueXYZ is licensed under the
MIT License. Licensed works, modifications, and larger works may be distributed under different terms and without source code.