@ltxhhz/5000choyen-api
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

5000choyen-api

想要 5000 兆元风格图片!使用 skia-canvas 在服务端生成。

fork 自原仓库,使用 ts 重写

npm

how to use

import { FTCanvas } from "@ltxhhz/5000choyen-api"
const options = {
  top: "上部分文字",
  bottom: "下部分文字",
  rainbow: true, //彩色字
  hoshii: false, //下半句使用默认日语"想要"
}

const canvas = new FTCanvas(options)
canvas.draw()
canvas.createBuffer("png") //图片buffer

添加字体

import { join } from "path"
import { FontLibrary } from "./main"

FontLibrary.use([
  join(__dirname, "./fonts/NotoSansCJKsc-Black.otf")
])

Readme

Keywords

none

Package Sidebar

Install

npm i @ltxhhz/5000choyen-api

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

152 kB

Total Files

14

Last publish

Collaborators

  • ltxhhz