Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vuexyz/vuexyz
Creative coding composables for Vue 3.
https://github.com/vuexyz/vuexyz
creative-coding vue
Last synced: about 2 months ago
JSON representation
Creative coding composables for Vue 3.
- Host: GitHub
- URL: https://github.com/vuexyz/vuexyz
- Owner: vuexyz
- License: mit
- Created: 2024-02-05T18:09:18.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-07-16T03:40:34.000Z (2 months ago)
- Last Synced: 2024-07-16T06:29:26.533Z (2 months ago)
- Topics: creative-coding, vue
- Language: TypeScript
- Homepage: https://vuexyz.org
- Size: 4.61 MB
- Stars: 128
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: docs/contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# VueXYZ
![cover.png](https://github.com/vuexyz/vuexyz/raw/main/docs%2Fpublic%2Fcover.png)
### VueXYZ is a collection of Vue 3 composables for creative coding.
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.
### Documentation: https://vuexyz.org
## π 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](https://vuexyz.org) 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](https://vuexyz.org/getting-started)
- [Interactive Demos](https://vuexyz.org/demo/basic-primitives)
- [Chat on Discord](https://discordapp.com/users/1165287468568944640)---
## π License
Copyright (c) 2024 Simon Le Marchant _(Marchant Web, LLC.)_
VueXYZ is licensed under the [MIT License](https://github.com/vuexyz/vuexyz/blob/main/LICENSE). Licensed works, modifications, and larger works may be distributed under different terms and without source code.