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.

相关推荐
小画家~1 小时前
第二十八:golang Time.time 时间格式返回定义结构体
java·前端·golang
行走的陀螺仪3 小时前
vue3-封装权限按钮组件和自定义指令
前端·vue3·js·自定义指令·权限按钮
q***75605 小时前
【Golang】——Gin 框架中间件详解:从基础到实战
中间件·golang·gin
资深web全栈开发10 小时前
力扣2536子矩阵元素加1-差分数组解法详解
算法·leetcode·矩阵·golang·差分数组
stand_forever1 天前
PHP客户端调用由Go服务端GRPC接口
rpc·golang·php
席万里1 天前
通过Golang订阅binlog实现轻量级的增量日志解析,并解决缓存不一致的开源库cacheflow
缓存·golang·开源
q***46521 天前
对基因列表中批量的基因进行GO和KEGG注释
开发语言·数据库·golang
柠石榴1 天前
GO-1 模型本地部署完整教程
开发语言·后端·golang
大Null1 天前
Linux安装GO环境
linux·golang
sg_knight1 天前
微信小程序中 WebView 组件的使用与应用场景
前端·javascript·微信·微信小程序·小程序·web·weapp