Skip to content

ltxhhz/koishi-plugin-skia-canvas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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)

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

About

基于 skia-canvas 提供 koishi 的 skia 服务

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published