p5r预告信生成器API

p5r预告信生成器API

本人将js生成的p5r预告信使用go语言进行了重写和部署,并开放了其api,可以直接通过get方法获取预告信的png。

快速开始

http://api.viogami.tech/p5cc/:text

eg:
http://api.viogami.tech/p5cc/persona5

感谢p5r风格字体的制作者预告信样式的制作者

使用了golang的gg库进行绘图。提供了GET方法和POST方法。GET使用动态路由直接生成,POST参数示例如下:

yaml 复制代码
text: "persona5"
fontSize: 120    # 字体大小
gutter : 10      # 字体间距
padding : 240     # 文字边距
textAlign: center  # 文字对齐方式
showLogo: true     # 是否显示Logo
logoScale: 1.0     # Logo缩放比例
logoOffset: 240     # Logo偏移量
showWtm: ""     # 水印文字,为空则不显示

字体暂时不可更改,默认使用了 HarmonyOSSansSC-Bold.ttf

Credits

Persona 5 © ATLUS. © SEGA.

This repositories`s cord forks from p5cc

Assets:

  • Persona 5 Calling Card Base by Elmind.
  • Persona 5 Style Text Generator by @LzxHahaha. Ported and modified by sorae42.
  • Persona 5 Logo and Assets by ALTUS.

All assets are all under fair use.

Credits can also be seen on the website along with links to the original site and owners, at the bottom of the page.

相关推荐
ftpeak3 天前
从零开始使用 axum-server 构建 HTTP/HTTPS 服务
网络·http·https·rust·web·web app
o0o_-_3 天前
【go/gopls/mcp】官方gopls内置mcp server使用
开发语言·后端·golang
恶猫3 天前
javascript文本长度检测与自动截取,用于标题长度检测
javascript·css·css3·js·自动检测·文本长度
fanged3 天前
Cesium4--地形(OSGB到3DTiles)
3d·gis·web
三角叶蕨4 天前
javaweb CSS
css·web
OEC小胖胖4 天前
App Router vs. Pages Router:我应该如何选择?
开发语言·前端·前端框架·web·next.js
又菜又爱玩呜呜呜~4 天前
go使用反射获取http.Request参数到结构体
开发语言·http·golang
希望20174 天前
Golang | http/server & Gin框架简述
http·golang·gin
闲人编程4 天前
前端形态与样式风格:从古典到现代的视觉语言演进
前端·css·状态模式·组件·js·风格·响应式