- UID
- 2
- 积分
- 8682
- 帖子
- 2905
- 主题
- 199
- 论坛币
- 11741
- 威望
- 16
- EP值
- 2349
- MP值
- 15
- 阅读权限
- 200
- 注册时间
- 2011-8-3
- 在线时间
- 2597 小时
- 最后登录
- 2024-8-28
|
关于Mirael 在私信中提问的, 如何制作顶楼图片中的文字:
- from tcaxPy import *
- def tcaxPy_Main(_i, _j, _n, _start, _end, _elapk, _k, _x, _y, _a, _txt):
- ASS_BUF = [] # used for saving ASS FX lines
- EFT = pos(_x + 1, _y + 1) + alpha1(HexToDec('77')) + color1('000000') + blur(1)
- ass_main(ASS_BUF, SubL(_start, _end), EFT, _txt)
- EFT = pos(_x, _y) + alpha1(HexToDec('00'))
- ass_main(ASS_BUF, SubL(_start, _end), EFT, _txt)
- EFT = pos(_x + 2, _y + 2) + alpha1(HexToDec('22')) + color1('000000') + blur(1)
- ass_main(ASS_BUF, SubL(_start, _end), EFT, _txt)
- return (ASS_BUF, None)
复制代码# tcc file version
< tcc file version = 1.0 >
# mode configuration
< inherit ass header = false >
< k mode = syllable >
< text layout = horizontal >
< tcaxpy init = false >
< tcaxpy user = false >
< tcaxpy fin = false >
# py settings
< py file = main_stamp.py > < beg line = 1 > < end line = 0 >
# main settings
< k-timed ass file = test_k.ass>
< font file = TT-曲水B.ttc > < font face id = 2 > < font size = 40 >
< fx width = 1280 > < fx height = 720 > < fx fps = 23.976 >
< alignment = 1 >
< x offset = 30 > < y offset = 20 >
< spacing = 0 > < space scale = 1.0 >
# style settings
< font face name = "" >
< bord = 0 > < shad = 0 >
< primary color = FFFFFF > < secondary color = FFFFFF > < outline color = FFFFFF > < back color = FFFFFF >
< primary alpha = 0 > < secondary alpha = 255 > < outline alpha = 255 > < back alpha = 255 >
# additional settings
< blur = 0 > |
|