- UID
- 2
- 积分
- 8682
- 帖子
- 2905
- 主题
- 199
- 论坛币
- 11566
- 威望
- 16
- EP值
- 2349
- MP值
- 15
- 阅读权限
- 200
- 注册时间
- 2011-8-3
- 在线时间
- 2597 小时
- 最后登录
- 2024-8-28
![Rank: 7](static/image/common/star_level3.gif) ![Rank: 7](static/image/common/star_level2.gif) ![Rank: 7](static/image/common/star_level1.gif)
|
说明
感谢X大提供源代码(C#)
此效果出处:
http://u.115.com/file/aq2ofr04#
[X]027_Darker_Than_Black_-Ryuusei_no_Gemini-_OP.mkv
附件为预览及脚本下载
移植过来的py脚本, (TCAX内置特效兼容)- ################################################################################
- ### description:
- ### circliar shining
- from tcaxPy import *
- def tcaxPy_Init():
- global _FD # frame duration, in millisecond
- global _Fs
- global Font
- _FD = 1000 / GetVal(val_FXFPS)
- _Fs = GetVal(val_FontSize)
- Font = InitFont(GetVal(val_FontFileName), GetVal(val_FaceID), _Fs, GetVal(val_Spacing), GetVal(val_SpaceScale), 0xFFFFFF, 0, 0)
- def tcaxPy_Fin():
- FinFont(Font)
- def DrawLight(r):
- s = '{\\p4}'
- r *= 8
- ag = -0.15
- while (ag <= 0.15):
- l = (pow(abs(ag) / 0.15, 0.3) + 0.5) * r
- s += 'm 0 0 l {0} {1} 0 1 c '.format(int(l * cos(ag)), int(l * sin(ag)))
- ag += 0.01
- s += '{\\p0}'
- return s
- def tcaxPy_Main(_i, _j, _n, _start, _end, _elapk, _k, _x, _y, _a, _txt):
- ASS_BUF = [] # used for saving ASS FX lines
- TCAS_BUF = [] # used for saving TCAS FX raw data
- ts = _start + _elapk
- #te = _start + _elapk + _k
- count = _k + 10
- for i in range(0, count, 2):
- startag = randint(0, 359)
- endag = startag + RandSign() * randint(50, 100)
- EFT = pos(_x, _y) + fad(300, 300) + alpha1(0) + be(1) + color1('147EF3') + frz(startag) + t(frz(endag))
- ass_main(ASS_BUF, SubL(ts + i, ts + i + 100, 4, Pix_Style), EFT, DrawLight(120))
- EFT = pos(_x, _y) + fad(300, 300) + alpha1(20) + be(1) + color1('FFFFFF') + frz(startag) + t(frz(endag))
- ass_main(ASS_BUF, SubL(ts + i, ts + i + 100, 5, Pix_Style), EFT, DrawLight(60))
- return (ASS_BUF, TCAS_BUF)
复制代码 |
-
1
查看全部评分
-
|