# Vue Skia
[](https://revolunet.mit-license.org/)  [](https://crates.io/crates/soft_skia) [](https://www.npmjs.com/package/vue-skia) [](https://www.npmjs.com/package/vue-skia)
The `vue-skia` is a `skia` based 2d graphics `vue` rendering library. It is based on `Rust` to implement software rasterization to perform rendering. It takes up less memory than the native canvas, however it is still an experimental project. And it's based entirely on `vue` syntax.
基于 `Skia` 的 2D 图形 `Vue` 渲染库 —— 使用 `Rust` 语言实现纯软件光栅化渲染,相比原生画布占用更少的内存,不过目前仍然是一个实验项目;此外使用层面完全基于 `Vue` 语法。
[](https://vue-skia.netlify.app)
Live Demo: [https://vue-skia.netlify.app](https://vue-skia.netlify.app)
## Usage
```shell
$ npm i vue-skia
```
`main.ts`
```ts
import { createApp } from "vue";
import App from "./App.vue";
import { VueSkia } from 'vue-skia'
const app = createApp(App);
app.use(VueSkia);
app.mount("#app");
```
`App.vue`
```vue
```
## Library Development
#### Soft Skia Development
```shell
$ cd soft-skia
$ cargo test
```
#### Soft Skia WASM Development
```shell
$ cd soft-skia-wasm
$ wasm-pack build --release --target web
```
#### Vue Skia Framework Development
```shell
$ cd vue-skia-framework
$ pnpm i
$ pnpm run build
```
#### Vue Playground Development
```shell
$ cd vue-playground
$ pnpm i
$ pnpm run serve
```
## License
[MIT](https://opensource.org/licenses/MIT)