@ltxhhz/koishi-plugin-skia-canvas
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

@ltxhhz/koishi-plugin-skia-canvas

npm

基于 samizdatco/skia-canvas: A GPU-accelerated 2D graphics environment for Node.js (github.com) 提供 koishi 的 skia 服务

食用方法

查看更多:samizdatco/skia-canvas: A GPU-accelerated 2D graphics environment for Node.js (github.com)

import type {} from '@ltxhhz/koishi-plugin-skia-canvas' //引入类型

const { Canvas, loadImage } = ctx.skia //使用其他模块

用例

区别

感谢另一个项目提供思路,他这个项目同样提供了基于另一个 skia 项目的 canvas 服务 Brooooooklyn/canvas: High performance skia binding to Node.js. Zero system dependencies and pure npm packages without any postinstall scripts nor node-gyp. (github.com)

两者主要的区别,或者说我要自己手搓这个项目的目的是

/@ltxhhz/koishi-plugin-skia-canvas/

    Package Sidebar

    Install

    npm i @ltxhhz/koishi-plugin-skia-canvas

    Weekly Downloads

    125

    Version

    0.0.6

    License

    MIT

    Unpacked Size

    12.5 kB

    Total Files

    4

    Last publish

    Collaborators

    • ltxhhz