- UID
- 363
- 积分
- 2032
- 帖子
- 123
- 主题
- 18
- 论坛币
- 3812
- 威望
- 10
- EP值
- 1178
- MP值
- 0
- 阅读权限
- 80
- 注册时间
- 2012-3-21
- 在线时间
- 284 小时
- 最后登录
- 2017-1-31
|
本帖最后由 jijidata 于 2014-1-3 03:07 编辑
- from tcaxPy import *
- from s import *
- from gdiFont import * #加入GDIfont模块
- from util.tcCurve import *
- import math
- import random
- def tcaxPy_Init():
- global _FontFileName
- global _FaceID
- global _Fs
- global _TextWidth
- global _TextHeight
- global _TextLength
- global _TextAdvDiff
- global _ResolutionX
- global _FD
- global _TextInitX
- global _Ascender # 字体上行高度
- global _Descender # 字体下行高度 通常为负数
- global _H
- global _3C
- _H = GetVal(val_FontSize)
- _3C = GetVal(val_3C)
- _FontFileName = GetVal(val_FontFileName)
- _FaceID = GetVal(val_FaceID)
- _Fs = GetVal(val_FontSize)
- _Ascender = GetVal(val_Ascender) #字体上行高度
- _TextHeight = GetVal(val_TextHeight)# 第i句卡拉OK歌词的j个字符的高度
- _TextWidth = GetVal(val_TextWidth)# 第i句卡拉OK歌词的j个字符的宽度
- _TextLength = GetVal(val_TextLength)# 第i句卡拉OK歌词的文字总长度
- _TextAdvDiff = GetVal(val_TextAdvanceDiff)# 从初始位置到第i句卡拉OK歌词的j个字符的水平步距
- _TextInitX = GetVal(val_TextInitX)
- _ResolutionX = GetVal(val_ResolutionX)
- _FD = 1000 / GetVal(val_FXFPS)
- global GdiFont #GDIfont
- GdiFont = gfInitFont(GetVal(val_FontFaceName), _Fs, GetVal(val_Spacing), GetVal(val_SpaceScale), 0, False) #GDIfont
- global Font
- Font = InitFont(GetVal(val_FontFileName), GetVal(val_FaceID), _Fs, GetVal(val_Spacing), GetVal(val_SpaceScale), 0xFFFFFF, 0, 0)
- def p(y):#绘图缩放代码
- if y == int(y):
- Y = str(int(y))
- else:
- Y = str(format(y, '.2f'))
- return '\\p{0}'.format(Y)
-
- def frxyz(x):
- X1 = randint(-x,x)
- X2 = randint(-x,x)
- X3 = randint(-x,x)
- return frx(X1)+fry(X2)+frz(X3)
-
- def tcaxPy_Main(_i, _j, _n, _BT, _ET, _SK, _KT, _X, _Y, _A, _TXT):
- ASS_BUF = [] # 用于保存ASS特效
- _7X = _X - int(_A / 2 + 0.5)
- _7Y = _Y - int(_H / 2 + 0.5)
-
- if _i > -1 and _i < 3 :
- lightning = ["m 0 0 l 2 0 l -4 0 m -4 0 l -2 0 l -3 -3 m -3 -3 l -1 -3 l -5 -2 m -5 -2 l -3 -2 l -1 -3 m -1 -3 l 1 -3 l -5 -3 m -5 -3 l -3 -3 l -2 -5 m -2 -5 l 0 -5 l -5 -11 m -5 -11 l -3 -11 l -10 -15 m -10 -15 l -8 -15 l -15 -20 m -15 -20 l -13 -20 l -9 -23 m -9 -23 l -7 -23 l -14 -29 m -14 -29 l -12 -29 l -20 -32 m -20 -32 l -18 -32 l -20 -34 m -20 -34 l -18 -34 l -19 -36 m -19 -36 l -17 -36 l -23 -37 m -23 -37 l -21 -37 l -24 -41 m -24 -41 l -22 -41 l -30 -43 m -30 -43 l -28 -43 l -26 -43 m -26 -43 l -24 -43 l -26 -47 m -26 -47 l -24 -47 l -21 -48 m -21 -48 l -19 -48 l -15 -47 m -15 -47 l -13 -47 l -14 -52 m -14 -52 l -12 -52 l -14 -57 m -14 -57 l -12 -57 l -9 -62 m -9 -62 l -7 -62 l -5 -62 m -5 -62 l -3 -62 l 1 -61 m 1 -61 l 3 -61 l 2 -64 m 2 -64 l 4 -64 l -1 -68 m -1 -68 l 1 -68 l 3 -74 m 3 -74 l 5 -74 l 1 -80 m 1 -80 l 3 -80 l 3 -86 m 3 -86 l 5 -86 l -3 -85 m -3 -85 l -1 -85 l -6 -89 m -6 -89 l -4 -89 l -5 -90 m -5 -90 l -3 -90 l -1 -91 m -1 -91 l 1 -91 l -1 -96 m -1 -96 l 1 -96 l 2 -99 m 2 -99 l 4 -99 l 1 -98 m 1 -98 l 3 -98 l 4 -104 m 4 -104 l 6 -104 l 5 -107 m 5 -107 l 7 -107 l 8 -109 m 8 -109 l 10 -109 l 9 -113 m 9 -113 l 11 -113 l 4 -118 m 4 -118 l 6 -118 l 3 -118 m 3 -118 l 5 -118 l 3 -117 m 3 -117 l 5 -117 l 6 -121 m 6 -121 l 8 -121 l 2 -122 m 2 -122 l 4 -122 l 2 -128 m 2 -128 l 4 -128 l 5 -130 m 5 -130 l 7 -130 l 0 -129 " ,
-
- "m 0 0 l 2 0 l 3 -4 m 3 -4 l 5 -4 l 2 -10 m 2 -10 l 4 -10 l 8 -11 m 8 -11 l 10 -11 l 3 -10 m 3 -10 l 5 -10 l 7 -12 m 7 -12 l 9 -12 l 3 -17 m 3 -17 l 5 -17 l 7 -20 m 7 -20 l 9 -20 l 3 -22 m 3 -22 l 5 -22 l 6 -25 m 6 -25 l 8 -25 l 3 -27 m 3 -27 l 5 -27 l 5 -27 m 5 -27 l 7 -27 l 8 -30 m 8 -30 l 10 -30 l 3 -34 m 3 -34 l 5 -34 l 7 -40 m 7 -40 l 9 -40 l 7 -41 m 7 -41 l 9 -41 l 6 -47 m 6 -47 l 8 -47 l 12 -46 m 12 -46 l 14 -46 l 13 -50 m 13 -50 l 15 -50 l 13 -54 m 13 -54 l 15 -54 l 18 -58 m 18 -58 l 20 -58 l 17 -62 m 17 -62 l 19 -62 l 23 -66 m 23 -66 l 25 -66 l 26 -68 m 26 -68 l 28 -68 l 22 -68 m 22 -68 l 24 -68 l 26 -71 m 26 -71 l 28 -71 l 26 -70 m 26 -70 l 28 -70 l 20 -69 m 20 -69 l 22 -69 l 21 -75 m 21 -75 l 23 -75 l 21 -80 m 21 -80 l 23 -80 l 25 -81 m 25 -81 l 27 -81 l 27 -86 m 27 -86 l 29 -86 l 31 -92 m 31 -92 l 33 -92 l 26 -93 m 26 -93 l 28 -93 l 24 -92 m 24 -92 l 26 -92 l 21 -96 m 21 -96 l 23 -96 l 16 -97 m 16 -97 l 18 -97 l 20 -98 m 20 -98 l 22 -98 l 21 -99 m 21 -99 l 23 -99 l 18 -104 m 18 -104 l 20 -104 l 12 -110 m 12 -110 l 14 -110 l 16 -110 m 16 -110 l 18 -110 l 12 -116 m 12 -116 l 14 -116 l 13 -122 m 13 -122 l 15 -122 l 8 -125 m 8 -125 l 10 -125 l 11 -126 m 11 -126 l 13 -126 l 12 -132 m 12 -132 l 14 -132 l 11 -137 m 11 -137 l 13 -137 l 14 -141 m 14 -141 l 16 -141 l 13 -146 m 13 -146 l 15 -146 l 14 -148 " ,
-
- "m 0 0 l 2 0 l 0 1 m 0 1 l 2 1 l 3 2 m 3 2 l 5 2 l -1 -2 m -1 -2 l 1 -2 l -5 -1 m -5 -1 l -3 -1 l -6 0 m -6 0 l -4 0 l -11 -1 m -11 -1 l -9 -1 l -16 -4 m -16 -4 l -14 -4 l -10 -10 m -10 -10 l -8 -10 l -5 -14 m -5 -14 l -3 -14 l -9 -14 m -9 -14 l -7 -14 l -10 -19 m -10 -19 l -8 -19 l -8 -21 m -8 -21 l -6 -21 l -9 -24 m -9 -24 l -7 -24 l -8 -25 m -8 -25 l -6 -25 l -3 -25 m -3 -25 l -1 -25 l -1 -26 m -1 -26 l 1 -26 l 0 -29 m 0 -29 l 2 -29 l -4 -30 m -4 -30 l -2 -30 l -3 -29 m -3 -29 l -1 -29 l -6 -34 m -6 -34 l -4 -34 l -5 -35 m -5 -35 l -3 -35 l -4 -39 m -4 -39 l -2 -39 l -4 -45 m -4 -45 l -2 -45 l -1 -47 m -1 -47 l 1 -47 l 1 -48 m 1 -48 l 3 -48 l 5 -53 m 5 -53 l 7 -53 l 6 -53 m 6 -53 l 8 -53 l 11 -55 m 11 -55 l 13 -55 l 14 -61 m 14 -61 l 16 -61 l 16 -60 m 16 -60 l 18 -60 l 14 -62 m 14 -62 l 16 -62 l 11 -67 m 11 -67 l 13 -67 l 6 -67 m 6 -67 l 8 -67 l 11 -68 m 11 -68 l 13 -68 l 7 -72 m 7 -72 l 9 -72 l 2 -78 m 2 -78 l 4 -78 l 4 -78 m 4 -78 l 6 -78 l 5 -81 m 5 -81 l 7 -81 l 4 -85 m 4 -85 l 6 -85 l 4 -87 m 4 -87 l 6 -87 l -1 -91 m -1 -91 l 1 -91 l 2 -95 m 2 -95 l 4 -95 l 6 -94 m 6 -94 l 8 -94 l 11 -95 m 11 -95 l 13 -95 l 8 -94 m 8 -94 l 10 -94 l 3 -100 m 3 -100 l 5 -100 l 7 -102 m 7 -102 l 9 -102 l 8 -101 m 8 -101 l 10 -101 l 2 -100 m 2 -100 l 4 -100 l 4 -104 ",
-
- "m 0 0 l 2 0 l -4 -4 m -4 -4 l -2 -4 l 1 -6 m 1 -6 l 3 -6 l 3 -12 m 3 -12 l 5 -12 l 3 -15 m 3 -15 l 5 -15 l 3 -15 m 3 -15 l 5 -15 l 3 -18 m 3 -18 l 5 -18 l 5 -20 m 5 -20 l 7 -20 l 6 -23 m 6 -23 l 8 -23 l 0 -24 m 0 -24 l 2 -24 l -5 -26 m -5 -26 l -3 -26 l 0 -29 m 0 -29 l 2 -29 l 3 -32 m 3 -32 l 5 -32 l 1 -32 m 1 -32 l 3 -32 l 2 -36 m 2 -36 l 4 -36 l 8 -37 m 8 -37 l 10 -37 l 4 -41 m 4 -41 l 6 -41 l -1 -42 m -1 -42 l 1 -42 l 5 -44 m 5 -44 l 7 -44 l -1 -48 m -1 -48 l 1 -48 l -7 -49 m -7 -49 l -5 -49 l -12 -49 m -12 -49 l -10 -49 l -7 -51 m -7 -51 l -5 -51 l -4 -51 m -4 -51 l -2 -51 l -10 -56 m -10 -56 l -8 -56 l -7 -58 m -7 -58 l -5 -58 l -11 -64 m -11 -64 l -9 -64 l -15 -66 m -15 -66 l -13 -66 l -17 -70 m -17 -70 l -15 -70 l -19 -71 m -19 -71 l -17 -71 l -15 -71 m -15 -71 l -13 -71 l -15 -73 m -15 -73 l -13 -73 l -11 -72 m -11 -72 l -9 -72 l -16 -73 m -16 -73 l -14 -73 l -17 -77 m -17 -77 l -15 -77 l -22 -77 m -22 -77 l -20 -77 l -28 -80 m -28 -80 l -26 -80 l -27 -84 m -27 -84 l -25 -84 l -26 -89 m -26 -89 l -24 -89 l -28 -95 m -28 -95 l -26 -95 l -24 -100 m -24 -100 l -22 -100 l -27 -100 m -27 -100 l -25 -100 l -22 -100 m -22 -100 l -20 -100 l -19 -102 m -19 -102 l -17 -102 l -21 -102 m -21 -102 l -19 -102 l -25 -102 m -25 -102 l -23 -102 l -29 -107 m -29 -107 l -27 -107 l -28 -106 m -28 -106 l -26 -106 l -34 -112 m -34 -112 l -32 -112 l -34 -115 m -34 -115 l -32 -115 l -39 -119 ",
-
- "m 0 0 l 2 0 l -5 -5 m -5 -5 l -3 -5 l 1 -11 m 1 -11 l 3 -11 l -5 -17 m -5 -17 l -3 -17 l -7 -16 m -7 -16 l -5 -16 l -8 -19 m -8 -19 l -6 -19 l -2 -19 m -2 -19 l 0 -19 l -2 -19 m -2 -19 l 0 -19 l 1 -22 m 1 -22 l 3 -22 l -2 -28 m -2 -28 l 0 -28 l -2 -27 m -2 -27 l 0 -27 l -3 -32 m -3 -32 l -1 -32 l -2 -36 m -2 -36 l 0 -36 l 0 -35 m 0 -35 l 2 -35 l -1 -34 m -1 -34 l 1 -34 l -7 -33 m -7 -33 l -5 -33 l -6 -33 m -6 -33 l -4 -33 l -5 -38 m -5 -38 l -3 -38 l -9 -41 m -9 -41 l -7 -41 l -15 -44 m -15 -44 l -13 -44 l -20 -45 m -20 -45 l -18 -45 l -15 -51 m -15 -51 l -13 -51 l -11 -52 m -11 -52 l -9 -52 l -9 -52 m -9 -52 l -7 -52 l -9 -53 m -9 -53 l -7 -53 l -14 -54 m -14 -54 l -12 -54 l -11 -54 m -11 -54 l -9 -54 l -17 -54 m -17 -54 l -15 -54 l -15 -55 m -15 -55 l -13 -55 l -20 -57 m -20 -57 l -18 -57 l -14 -63 m -14 -63 l -12 -63 l -17 -68 m -17 -68 l -15 -68 l -11 -70 m -11 -70 l -9 -70 l -14 -69 m -14 -69 l -12 -69 l -16 -70 m -16 -70 l -14 -70 l -20 -75 m -20 -75 l -18 -75 l -23 -77 m -23 -77 l -21 -77 l -18 -83 m -18 -83 l -16 -83 l -13 -86 m -13 -86 l -11 -86 l -18 -86 m -18 -86 l -16 -86 l -22 -85 m -22 -85 l -20 -85 l -18 -85 m -18 -85 l -16 -85 l -22 -88 m -22 -88 l -20 -88 l -28 -88 m -28 -88 l -26 -88 l -33 -91 m -33 -91 l -31 -91 l -35 -90 m -35 -90 l -33 -90 l -41 -94 m -41 -94 l -39 -94 l -45 -99 m -45 -99 l -43 -99 l -50 -101 m -50 -101 l -48 -101 l -45 -100 m -45 -100 l -43 -100 l -49 -100 ",
-
- "m 0 0 l 2 0 l 2 1 m 2 1 l 4 1 l 1 2 m 1 2 l 3 2 l 3 -3 m 3 -3 l 5 -3 l 5 -5 m 5 -5 l 7 -5 l 4 -4 m 4 -4 l 6 -4 l 5 -6 m 5 -6 l 7 -6 l 5 -10 m 5 -10 l 7 -10 l 4 -14 m 4 -14 l 6 -14 l -2 -14 m -2 -14 l 0 -14 l -6 -20 m -6 -20 l -4 -20 l -7 -22 m -7 -22 l -5 -22 l -13 -27 m -13 -27 l -11 -27 l -17 -28 m -17 -28 l -15 -28 l -18 -30 m -18 -30 l -16 -30 l -15 -33 m -15 -33 l -13 -33 l -13 -36 m -13 -36 l -11 -36 l -9 -38 m -9 -38 l -7 -38 l -13 -37 m -13 -37 l -11 -37 l -8 -40 m -8 -40 l -6 -40 l -2 -45 m -2 -45 l 0 -45 l 3 -47 m 3 -47 l 5 -47 l 2 -48 m 2 -48 l 4 -48 l 5 -54 m 5 -54 l 7 -54 l 2 -58 m 2 -58 l 4 -58 l 1 -57 m 1 -57 l 3 -57 l 4 -58 m 4 -58 l 6 -58 l 9 -61 m 9 -61 l 11 -61 l 8 -60 m 8 -60 l 10 -60 l 6 -63 m 6 -63 l 8 -63 l 7 -67 m 7 -67 l 9 -67 l 10 -68 m 10 -68 l 12 -68 l 13 -69 m 13 -69 l 15 -69 l 8 -74 m 8 -74 l 10 -74 l 5 -75 m 5 -75 l 7 -75 l 10 -79 m 10 -79 l 12 -79 l 10 -85 m 10 -85 l 12 -85 l 15 -90 m 15 -90 l 17 -90 l 15 -91 m 15 -91 l 17 -91 l 14 -92 m 14 -92 l 16 -92 l 9 -98 m 9 -98 l 11 -98 l 3 -104 m 3 -104 l 5 -104 l 1 -108 m 1 -108 l 3 -108 l 4 -113 m 4 -113 l 6 -113 l 3 -119 m 3 -119 l 5 -119 l 5 -120 m 5 -120 l 7 -120 l 1 -121 m 1 -121 l 3 -121 l 3 -122 m 3 -122 l 5 -122 l 4 -128 m 4 -128 l 6 -128 l 5 -134 m 5 -134 l 7 -134 l 11 -137 ",
-
- "m 0 0 l 2 0 l 0 -1 m 0 -1 l 2 -1 l 3 -5 m 3 -5 l 5 -5 l 2 -11 m 2 -11 l 4 -11 l 6 -16 m 6 -16 l 8 -16 l 0 -20 m 0 -20 l 2 -20 l 4 -25 m 4 -25 l 6 -25 l 2 -28 m 2 -28 l 4 -28 l -4 -31 m -4 -31 l -2 -31 l -4 -33 m -4 -33 l -2 -33 l -1 -36 m -1 -36 l 1 -36 l -3 -36 m -3 -36 l -1 -36 l 3 -38 m 3 -38 l 5 -38 l 9 -44 m 9 -44 l 11 -44 l 10 -44 m 10 -44 l 12 -44 l 9 -48 m 9 -48 l 11 -48 l 6 -54 m 6 -54 l 8 -54 l 7 -57 m 7 -57 l 9 -57 l 1 -63 m 1 -63 l 3 -63 l 0 -63 m 0 -63 l 2 -63 l 6 -66 m 6 -66 l 8 -66 l 9 -68 m 9 -68 l 11 -68 l 13 -67 m 13 -67 l 15 -67 l 14 -69 m 14 -69 l 16 -69 l 9 -69 m 9 -69 l 11 -69 l 9 -71 m 9 -71 l 11 -71 l 10 -73 m 10 -73 l 12 -73 l 14 -74 m 14 -74 l 16 -74 l 12 -80 m 12 -80 l 14 -80 l 9 -84 m 9 -84 l 11 -84 l 6 -84 m 6 -84 l 8 -84 l 4 -84 m 4 -84 l 6 -84 l -1 -85 m -1 -85 l 1 -85 l 1 -84 m 1 -84 l 3 -84 l -3 -86 m -3 -86 l -1 -86 l 2 -86 m 2 -86 l 4 -86 l 8 -91 m 8 -91 l 10 -91 l 13 -91 m 13 -91 l 15 -91 l 19 -91 m 19 -91 l 21 -91 l 24 -92 m 24 -92 l 26 -92 l 20 -94 m 20 -94 l 22 -94 l 17 -98 m 17 -98 l 19 -98 l 20 -98 m 20 -98 l 22 -98 l 16 -99 m 16 -99 l 18 -99 l 16 -105 m 16 -105 l 18 -105 l 20 -105 m 20 -105 l 22 -105 l 15 -109 m 15 -109 l 17 -109 l 16 -112 m 16 -112 l 18 -112 l 19 -117 m 19 -117 l 21 -117 l 22 -116 m 22 -116 l 24 -116 l 16 -117 ",
-
- "m 0 0 l 2 0 l 6 0 m 6 0 l 8 0 l 8 -2 m 8 -2 l 10 -2 l 14 -3 m 14 -3 l 16 -3 l 11 -5 m 11 -5 l 13 -5 l 8 -7 m 8 -7 l 10 -7 l 11 -12 m 11 -12 l 13 -12 l 12 -15 m 12 -15 l 14 -15 l 18 -16 m 18 -16 l 20 -16 l 21 -18 m 21 -18 l 23 -18 l 20 -18 m 20 -18 l 22 -18 l 23 -17 m 23 -17 l 25 -17 l 19 -18 m 19 -18 l 21 -18 l 24 -20 m 24 -20 l 26 -20 l 29 -22 m 29 -22 l 31 -22 l 29 -25 m 29 -25 l 31 -25 l 34 -24 m 34 -24 l 36 -24 l 30 -28 m 30 -28 l 32 -28 l 26 -29 m 26 -29 l 28 -29 l 32 -30 m 32 -30 l 34 -30 l 26 -31 m 26 -31 l 28 -31 l 20 -33 m 20 -33 l 22 -33 l 21 -36 m 21 -36 l 23 -36 l 15 -35 m 15 -35 l 17 -35 l 10 -37 m 10 -37 l 12 -37 l 4 -42 m 4 -42 l 6 -42 l 6 -46 m 6 -46 l 8 -46 l 4 -47 m 4 -47 l 6 -47 l 3 -50 m 3 -50 l 5 -50 l -1 -51 m -1 -51 l 1 -51 l -5 -54 m -5 -54 l -3 -54 l -5 -54 m -5 -54 l -3 -54 l -6 -60 m -6 -60 l -4 -60 l -8 -63 m -8 -63 l -6 -63 l -13 -63 m -13 -63 l -11 -63 l -10 -62 m -10 -62 l -8 -62 l -8 -63 m -8 -63 l -6 -63 l -8 -64 m -8 -64 l -6 -64 l -5 -63 m -5 -63 l -3 -63 l -5 -67 m -5 -67 l -3 -67 l -10 -66 m -10 -66 l -8 -66 l -6 -69 m -6 -69 l -4 -69 l -11 -69 m -11 -69 l -9 -69 l -8 -75 m -8 -75 l -6 -75 l -9 -74 m -9 -74 l -7 -74 l -15 -79 m -15 -79 l -13 -79 l -19 -85 m -19 -85 l -17 -85 l -18 -91 m -18 -91 l -16 -91 l -16 -93 m -16 -93 l -14 -93 l -14 -94 m -14 -94 l -12 -94 l -9 -95 ",
-
- "m 0 0 l 2 0 l 1 -2 m 1 -2 l 3 -2 l 2 -2 m 2 -2 l 4 -2 l 4 -3 m 4 -3 l 6 -3 l 7 -3 m 7 -3 l 9 -3 l 3 -6 m 3 -6 l 5 -6 l 7 -12 m 7 -12 l 9 -12 l 6 -18 m 6 -18 l 8 -18 l 6 -22 m 6 -22 l 8 -22 l 0 -27 m 0 -27 l 2 -27 l 6 -29 m 6 -29 l 8 -29 l 8 -35 m 8 -35 l 10 -35 l 6 -34 m 6 -34 l 8 -34 l 11 -38 m 11 -38 l 13 -38 l 8 -42 m 8 -42 l 10 -42 l 2 -41 m 2 -41 l 4 -41 l -2 -47 m -2 -47 l 0 -47 l -6 -51 m -6 -51 l -4 -51 l -2 -52 m -2 -52 l 0 -52 l -7 -56 m -7 -56 l -5 -56 l -12 -61 m -12 -61 l -10 -61 l -11 -66 m -11 -66 l -9 -66 l -9 -72 m -9 -72 l -7 -72 l -10 -72 m -10 -72 l -8 -72 l -12 -78 m -12 -78 l -10 -78 l -15 -79 m -15 -79 l -13 -79 l -10 -81 m -10 -81 l -8 -81 l -5 -87 m -5 -87 l -3 -87 l -1 -86 m -1 -86 l 1 -86 l 1 -88 m 1 -88 l 3 -88 l 2 -90 m 2 -90 l 4 -90 l -2 -89 m -2 -89 l 0 -89 l -5 -95 m -5 -95 l -3 -95 l -8 -99 m -8 -99 l -6 -99 l -9 -99 m -9 -99 l -7 -99 l -12 -98 m -12 -98 l -10 -98 l -14 -99 m -14 -99 l -12 -99 l -18 -105 m -18 -105 l -16 -105 l -17 -109 m -17 -109 l -15 -109 l -19 -110 m -19 -110 l -17 -110 l -13 -115 m -13 -115 l -11 -115 l -8 -119 m -8 -119 l -6 -119 l -2 -120 m -2 -120 l 0 -120 l -6 -124 m -6 -124 l -4 -124 l -8 -126 m -8 -126 l -6 -126 l -11 -131 m -11 -131 l -9 -131 l -16 -137 m -16 -137 l -14 -137 l -13 -137 m -13 -137 l -11 -137 l -11 -137 m -11 -137 l -9 -137 l -17 -140 m -17 -140 l -15 -140 l -16 -139 ",
- "m 0 0 l 2 0 l 3 0 m 3 0 l 5 0 l 8 0 m 8 0 l 10 0 l 9 -4 m 9 -4 l 11 -4 l 13 -9 m 13 -9 l 15 -9 l 14 -10 m 14 -10 l 16 -10 l 13 -9 m 13 -9 l 15 -9 l 8 -12 m 8 -12 l 10 -12 l 2 -13 m 2 -13 l 4 -13 l -1 -18 m -1 -18 l 1 -18 l -5 -23 m -5 -23 l -3 -23 l 0 -23 m 0 -23 l 2 -23 l -6 -26 m -6 -26 l -4 -26 l -12 -25 m -12 -25 l -10 -25 l -17 -27 m -17 -27 l -15 -27 l -11 -29 m -11 -29 l -9 -29 l -6 -32 m -6 -32 l -4 -32 l -7 -35 m -7 -35 l -5 -35 l -5 -35 m -5 -35 l -3 -35 l 1 -39 m 1 -39 l 3 -39 l -5 -41 m -5 -41 l -3 -41 l -11 -42 m -11 -42 l -9 -42 l -12 -41 m -12 -41 l -10 -41 l -11 -46 m -11 -46 l -9 -46 l -12 -50 m -12 -50 l -10 -50 l -10 -50 m -10 -50 l -8 -50 l -16 -56 m -16 -56 l -14 -56 l -17 -60 m -17 -60 l -15 -60 l -19 -60 m -19 -60 l -17 -60 l -14 -64 m -14 -64 l -12 -64 l -18 -66 m -18 -66 l -16 -66 l -18 -65 m -18 -65 l -16 -65 l -19 -69 m -19 -69 l -17 -69 l -20 -72 m -20 -72 l -18 -72 l -19 -71 m -19 -71 l -17 -71 l -21 -74 m -21 -74 l -19 -74 l -15 -76 m -15 -76 l -13 -76 l -16 -78 m -16 -78 l -14 -78 l -12 -84 m -12 -84 l -10 -84 l -17 -89 m -17 -89 l -15 -89 l -22 -93 m -22 -93 l -20 -93 l -22 -94 m -22 -94 l -20 -94 l -24 -100 m -24 -100 l -22 -100 l -23 -105 m -23 -105 l -21 -105 l -26 -105 m -26 -105 l -24 -105 l -27 -104 m -27 -104 l -25 -104 l -31 -110 m -31 -110 l -29 -110 l -31 -114 m -31 -114 l -29 -114 l -37 -116 m -37 -116 l -35 -116 l -33 -122 m -33 -122 l -31 -122 l -27 -126" ]
- ass_main(ASS_BUF,SubL(_BT-100+_j*6,_BT+_SK,1),an(5)+pos(_X,_Y)+fad(200,0) ,_TXT)#入场效果
- ass_main(ASS_BUF,SubL(_BT+_SK,_ET-100+_j*6,1),an(5)+pos(_X,_Y)+blur(6)+bord(6)+t(0,100,color3("FFFFFF")+fsc(130,130))+t(100,_KT*10,fsc(100,100)+color3(_3C)+bord(2)+blur(1))+fad(0,300) ,_TXT)#表现方式
- for j in range(0,5):
- ass_main(ASS_BUF,SubL(_BT+_SK+j*10,_BT+_SK+40,2),an(7)+fry(randint(-50,50))+color3("FFFFFF")+clip(_7X-50,_7Y-80,_7X+50,_7Y+80)+t(0,20,bord(2)+blur(5))+t(20,50,color3("FF4E03")+bord(2)+blur(3))+shad(0)+pos(_X,_Y)+fad(0,250)+fsc(70,70)+p(1) ,lightning[randint(0,9)])#附加效果
-
- for s in range(5):
- time = randint(0,_ET-_BT-20)
- time2 = time+20
- ass_main(ASS_BUF,SubL(_BT+time,_BT+time2,2),an(7)+fry(randint(-50,50))+color3("FFFFFF")+clip(_7X-50,_7Y-80,_7X+50,_7Y+80)+t(0,20,bord(2)+blur(5))+t(20,50,color3("FF4E03")+bord(2)+blur(3))+shad(0)+pos(_X+randint(0,_j*_A+10),_Y)+fad(0,250)+fsc(70,70)+p(1) ,lightning[randint(0,9)])#随机闪电
-
- if _i > 2 and _i < 5 :
- BT=_BT-10+_j*10
- ET=_BT+_SK
- EFT1 = alt(BT,ET, t = 650 , FX1 =frx(0.75), FX2 = frx(-0.75), offset = 0, a1 = None,a2 = None)
- ass_main(ASS_BUF,SubL(BT,ET,1),an(5)+org(_X+60,_Y+350)+pos(_X,_Y)+fad(200,0)+EFT1 ,_TXT)#入场效果
- ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT,1),an(5)+pos(_X,_Y)+color1("FFFFFF")+color3("FFFFFF")+blur(5)+bord(3)+fsc(170,170)+frz(10*(-1)**(_j+1))+t(frz(0)+color3(_3C)+bord(2)+blur(1)+fsc(100,100)) ,_TXT)#表现方式
- ass_main(ASS_BUF,SubL(_BT+_SK+_KT,_ET,1),an(5)+pos(_X,_Y) ,_TXT)
- ass_main(ASS_BUF,SubL(_ET,_ET+25,1),an(5)+move(_X,_Y,_X-randint(-300,300),_Y-randint(-15,15))+fad(0,150)+t(frxyz(360)+blur(5)+bord(3)) ,_TXT)#退场效果
-
-
- for k in range(3):# 曲线数
- posX1 = _X+random.uniform(-_A,-_A/2)
- posX2 =_X+random.uniform(-_A/3,_A)
- PP = [(posX1, _Y),(posX1, _Y),(posX1, _Y),(_X+random.uniform(-_A*1.5,_A*1.5), _Y+randint(-90,90)), (_X+random.uniform(-_A*1.5,_A*1.5), _Y+randint(-50,50)),(posX2 ,_Y),(posX2,_Y),(posX2 ,_Y)]
- ucb = UCBSpline(PP) #使用ucb
- L = ucb.length() # 曲线总长度
- STEP_N = _KT*2 # 取样点数
- step_size = 1 / STEP_N
- print('控制点: {0} 曲线总长度: {1:.02f} 所取点数: {2}'.format(len(PP), L, STEP_N))
- t1 = 0
- POS = []
- for w in range(int(STEP_N/2)):
- POS.append(UniformCubicBSpline(PP,w * step_size))
- particle = RandPolygon(12/5, 12/8, 4)
- BT2=_BT+_SK-20+w*1
- ET2=_BT+_SK-20+70+(w+1)*1
- EFT2=alt(BT2,ET2, t = 80 , FX1 =alpha(0), FX2 = alpha(255), offset = 0, a1 = None,a2 = None)
- ass_main(ASS_BUF, SubL(BT2, ET2,11), an(5)+t(frxyz(720))+bord(1)+shad(0)+blur(2)+color3("FF4E03")+EFT2+ move(POS[w][0], POS[w][1],POS[w][0]+randint(-15,15), POS[w][1]+randint(-15,15)) +fad(100,200), particle ) #曲线
-
- if _i > 4 and _i < 9 :
- ass_main(ASS_BUF,SubL(_BT-5+_j*1,_BT+_SK,1),an(5)+move(_X+randint(-80,60),_Y+randint(-80,20),_X,_Y,0,200)+t(0,200,frz(720)) ,_TXT)#入场效果
- ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT,1),an(5)+pos(_X,_Y)+jitter(9,5,9,5,9,1)+color3("FF4E03")+color1("FFFFFF")+blur(10) ,_TXT)#表现方式
- ass_main(ASS_BUF,SubL(_BT+_SK+_KT,_BT+_SK+_KT+80,1),an(5)+pos(_X,_Y)+fad(0,100) ,_TXT)
- PIX = TextPix(Font, _TXT)
- InitPosX = _X - int(_A / 2 + 0.5) + PIX[0][0] # 第一个像素的X轴坐标
- InitPosY = _Y - int(_Fs / 2 + 0.5) + PIX[0][1] # 第一个像素的Y轴坐标
- for h in range(PIX[1][1]): # 开始纵向扫描
- PosY = InitPosY + h # 当前像素Y轴坐标
- for w in range(PIX[1][0]): # 开始横向扫描
- PosX = InitPosX + w
- X = PosX-randint(-50,50)
- Y = PosY-randint(-50,50) # 当前像素X轴坐标
- idx = 4 * (h * PIX[1][0] + w) # 脚标
- PixR = PIX[2][idx + 0] # 当前像素的红色分量
- PixG = PIX[2][idx + 1] # 当前像素的绿色分量
- PixB = PIX[2][idx + 2] # 当前像素的蓝色分量
- PixA = PIX[2][idx + 3] # 当前像素的透明度
- if PixA != 0: # 如果当前像素不为透明则进行如下操作
- S = randint(-30,30)
- H = randint(-10,10)
- Start = int(_BT+_SK+_KT+w*(_KT/PIX[1][0]))+H+40
- End = int(_BT+_SK+_KT+w*(_KT/PIX[1][0]))+S+250
- Bezier3 = moves3(PosX,PosY,PosX+randint(-40,40),PosY+randint(-60,60),PosX+randint(-10,10),PosY+randint(-110,-10))
- ass_main(ASS_BUF, SubL(Start,End ,5, Pix_Style),an(7)+Bezier3+fad(0,350+S)+alpha(255-PixA)+shad(0)+bord(0.7)+blur(2)+org(_X,_Y)+color1("FFFFFF")+frx(0)+t(450,0,frx(360)+color3('FF4E03')), PixPt())
- for j in range(5):
- ass_main(ASS_BUF,SubL(_BT+_SK+_KT-5+(j-1)*5,_BT+_SK+_KT*2,1),an(5)+bord(1)+blur(3)+color3("FF4E03")+frz(randint(-200,200))+fry(randint(-200,200))+fsc(40,40)+pos(_X,_Y)+t(100,110,alpha(255)) ,"{\p1}m -2 -30 l -7 -22 l -5 -15 b -11 -9 -8 -5 -8 0 b -9 -12 -6 -13 -4 -15 l -6 -22 l -2 -30 m -8 1 l -3 0 l 0 5 l 12 2 l 21 -14 l 26 -7 l 54 18 l 53 13 l 66 15 l 39 -34 l 43 -47 l 38 -53 l 45 -46 l 40 -34 l 68 17 l 66 18 l 65 16 l 54 14 l 55 20 l 51 20 b 45 8 34 1 25 -6 b 24 -8 23 -11 21 -13 b 17 -7 15 -1 14 5 b 9 4 4 5 -1 6 b -2 4 -2 3 -3 1 b -5 1 -6 1 -8 1 ")
- ass_main(ASS_BUF,SubL(_BT+_SK+10+(j-1)*10,_BT+_SK+_KT,1),an(5)+bord(1)+blur(3)+color3("FF4E03")+frz(randint(-200,200))+fry(randint(-200,200))+fsc(60,60)+pos(_X,_Y)+t(100,110,alpha(255)) ,"{\p1}m 2 -38 l 10 -32 l 29 -44 l 51 -41 l 41 -24 l 30 -24 l 47 -14 l 53 5 b 61 -4 74 -12 89 -14 l 84 -15 l 66 -8 l 54 3 b 51 -4 49 -10 49 -17 b 42 -18 36 -21 31 -24 l 42 -23 b 45 -30 48 -36 53 -42 l 28 -44 b 24 -43 16 -37 11 -33 l 5 -37 l 3 -41 l -5 -35 l 2 -38 ")
- for k in range(4):
- ass_main(ASS_BUF,SubL(_BT+_SK+_KT-10+(j-1)*10,_BT+_SK+_KT*2,1),an(5)+bord(1)+blur(3)+color3("FF4E03")+frz(randint(-200,200))+fry(randint(-200,200))+fsc(50,50)+pos(_X,_Y)+t(100,110,alpha(255)) ,"{\p1}m 2 -38 l 10 -32 l 29 -44 l 51 -41 l 41 -24 l 30 -24 l 47 -14 l 53 5 b 61 -4 74 -12 89 -14 l 84 -15 l 66 -8 l 54 3 b 51 -4 49 -10 49 -17 b 42 -18 36 -21 31 -24 l 42 -23 b 45 -30 48 -36 53 -42 l 28 -44 b 24 -43 16 -37 11 -33 l 5 -37 l 3 -41 l -5 -35 l 2 -38 ")
- for l in range(6):
- ass_main(ASS_BUF,SubL(_BT+_SK+(j-1)*17,_BT+_SK+_KT,1),an(5)+bord(1)+blur(3)+color3("FF4E03")+frz(randint(-200,200))+fry(randint(-200,200))+fsc(35,35)+pos(_X,_Y)+t(100,110,alpha(255)) ,"{\p1}m 12 -2 l 18 9 l 37 12 l 35 6 l 58 -15 l 59 -13 l 60 1 l 70 9 l 77 9 l 51 33 l 41 55 b 28 62 43 91 49 108 l 29 139 l 45 147 l 53 168 l 39 218 l 52 169 l 43 151 l 43 148 l 27 139 l 27 134 b 32 135 41 117 48 108 b 44 91 25 67 39 52 l 53 27 l 75 10 l 68 11 l 66 10 l 66 7 l 59 1 l 58 -14 l 36 6 l 39 14 l 17 10 l 15 9 l 12 -1 l 0 0 ")
- for m in range(7):
- ass_main(ASS_BUF,SubL(_BT+_SK+5+(j-1)*5,_BT+_SK+_KT,1),an(5)+bord(1)+blur(3)+color3("FF4E03")+frz(randint(-200,200))+fry(randint(-200,200))+fsc(65,65)+pos(_X,_Y)+t(100,110,alpha(255)) ,"{\p1}m -2 -30 l -7 -22 l -5 -15 b -11 -9 -8 -5 -8 0 b -9 -12 -6 -13 -4 -15 l -6 -22 l -2 -30 m -8 1 l -3 0 l 0 5 l 12 2 l 21 -14 l 26 -7 l 54 18 l 53 13 l 66 15 l 39 -34 l 43 -47 l 38 -53 l 45 -46 l 40 -34 l 68 17 l 66 18 l 65 16 l 54 14 l 55 20 l 51 20 b 45 8 34 1 25 -6 b 24 -8 23 -11 21 -13 b 17 -7 15 -1 14 5 b 9 4 4 5 -1 6 b -2 4 -2 3 -3 1 b -5 1 -6 1 -8 1 ")
-
-
- if _i > 8 :
- number = ["0","1","2","3","4","5","6","7","8","9","10","11","12"]
- ass_main(ASS_BUF,SubL(_BT-50+_j*2,_BT+_SK,1),an(5)+move(_X,_Y+randint(50,80)*(-1)**_j,_X,_Y,0,300)+frx(90*(-1)**_j)+t(0,300,frx(0)+alpha(65)) ,_TXT)
- ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT+50,1),an(5)+pos(_X,_Y)+fad(0,300)+blur(5)+jitter(9,5,9,5,9,1)+t(0,_KT*10/6,fsvp(10*(-1)**_j)+fsc(130,130))+t(_KT*10/6,_KT*10,fsc(100,100)) ,_TXT)
- for j in range(math.ceil(_KT/5)) :
- step1 = 5*randint(0,int((_KT+200)/40))
- ass_main(ASS_BUF,SubL(_BT+_SK+step1,_BT+_SK+step1+80,1),an(5)+move(_X,_Y+10,_X-randint(150,200),_Y+10)+bord(0.5)+fsc(50,50)+fad(100,300)+t(frxyz(360)) ,number[randint(0,12)])
- for i in range(8) :
- EFT1 = alt(_BT+_SK,_BT+_SK+_KT+100, t = 200 , FX1 =fsc(100,100)+be(1), FX2 = fsc(140,140)+be(30), offset = 0, a1 = None,a2 = None)
- ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT+100,1),an(5)+move(_X+randint(-100,10),_Y-randint(-50,+50),_X,_Y)+blur(5)+bord(0.5)+fad(0,100)+fsc(70,70)+frxyz(3600)+t(frxyz(3600))+EFT1 ,"{\p1}m 0 48 l 24 41 l 51 56 l 65 49 l 73 33 l 66 49 l 82 40 l 99 43 l 82 41 l 51 57 l 37 49 l 21 60 l 36 49 l 24 42")
- for k in range(30) :
- AD = [175,255]
- EFT2 = alt(_BT+_SK+_j*5,_BT+_SK+_KT+_j*5+50, t = randint(100,300) , FX1 =fsc(40,40)+alpha(AD[randint(0,1)]), FX2 = fsc(25,25)+alpha(0), offset = 0, a1 = None,a2 = None)
- ass_main(ASS_BUF,SubL(_BT+_SK+_j*5,_BT+_SK+_KT+_j*5+50,1),an(5)+fsc(40,40)+fad(0,200)+move(_X+randint(-100,100),_Y+randint(-100,100),_X+randint(-100,100),_Y+randint(-100,100))+frz(45)+shad(0)+bord(0.5)+blur(3)+EFT2 ,"{\p1}m 30 23 b 24 23 24 33 30 33 b 36 33 37 23 30 23 m 35 27 l 60 28 l 35 29 m 26 27 l 0 28 l 26 29 m 29 23 l 30 0 l 31 23 m 29 33 l 30 56 l 31 33")
-
-
-
- return (ASS_BUF, None)
复制代码 预览:http://pan.baidu.com/s/1Gey8a
在原来的模板上修改的~嗯
字体大小推荐设置成偶数 |
-
3
查看全部评分
-
|