p5r预告信生成器API

在这里插入图片描述

p5r预告信生成器API

本人将js生成的p5r预告信使用go语言进行了重写和部署,并开放了其api,可以直接通过get方法获取预告信的png。
github地址:https://github.com/viogami/WebAPI/tree/master/core/p5cc

快速开始

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

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

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

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

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值