- UID
- 319
- 积分
- 3718
- 帖子
- 260
- 主题
- 10
- 论坛币
- 1147
- 威望
- 29
- EP值
- 628
- MP值
- 5
- 阅读权限
- 80
- 注册时间
- 2012-2-26
- 在线时间
- 222 小时
- 最后登录
- 2019-1-1
|
本帖最后由 忘却の小伊 于 2012-3-18 14:46 编辑
for...in 函数用得有点乱....- from tcaxPy import *
- def tcaxPy_Init():
- global _FontSize
- global pyFont
- _FontSize = GetVal(val_FontSize)
- pyFont = InitFont(GetVal(val_FontFileName), GetVal(val_FaceID), GetVal(val_FontSize), GetVal(val_Spacing), GetVal(val_SpaceScale), 0x0000FF, 0, 0)
- def tcaxPy_Fin():
- FinFont(pyFont)
- def fr(x):
- X = randint(-x,x)
- return frx(X)+fry(X)+frz(X)
- def tcaxPy_Main(_i, _j, _n, _BT, _ET, _SK, _KT, _X, _Y, _A, _TXT):
- ASS_BUF = []
- CL=["26B1FD","CECECE","C8E787","6883FF","FCD8AF","A9E096","AF7BFF","FA6CA7","FC8769","F596EE"]
- if _i < 44:
- for i in range(50):
- ass_main(ASS_BUF, SubL(_BT-10+_j*5,_BT+_j*5+42,60),mov(_X+randint(-15,15),_Y+randint(-15,15),_X+20+randint(-30,60),_Y+randint(-30,30))+fad(50,300)+color1('FFFFFF')+color3(CL[randint(0,9)])+color4(CL[randint(0,9)])+alpha3(200)+bord(0.5)+blur(2)+frz(45), '{\\p3}m 0 100 l 1 1 100 0 1 -1 0 -100 -1 -1 -100 0 -1 1 c m 6 6 s 6 -6 -6 -6 -6 6 c')
- ass_main(ASS_BUF, SubL(_BT-10+_j*5, _BT+_SK-10,30),an(5)+fad(200,200)+color1(CL[randint(0,9)])+color3(CL[randint(0,9)])+color4(CL[randint(0,9)])+bord(2)+blur(4)+move(_X-20, _Y,_X,_Y)+t(fry(-1800)),_TXT)
- for j in range(15):
- ass_main(ASS_BUF, SubL(_BT+_SK-10,_BT+_SK+_KT*3,60),move(_X+20+randint(-15,15),_Y+randint(-15,15),_X+40+randint(-30,60),_Y+randint(-50,50))+fad(50,200)+color3(CL[randint(0,9)])+color4(CL[randint(0,9)])+alpha3(200)+bord(0.5)+blur(2)+frz(45), '{\\p3}m 0 100 l 1 1 100 0 1 -1 0 -100 -1 -1 -100 0 -1 1 c m 6 6 s 6 -6 -6 -6 -6 6 c')
- ass_main(ASS_BUF, SubL(_BT+_SK-20, _BT+_SK,40),an(5)+fad(200,200)+color3(CL[randint(0,9)])+color4(CL[randint(0,9)])+bord(2)+blur(4)+move(_X-20, _Y,_X,_Y)+fry(90)+t(fry(-90)),_TXT)
-
- ts1 = _BT + _SK
- EFT1 = an(5)+color3(CL[randint(0,9)])+color4(CL[randint(0,9)])+bord(2)+blur(4)
- T1 = 60
- P_s = (_X , _Y)
- P_t = (_X - 35, _Y - 30)
- P_e = (_X - 70, _Y)
- JUMP = Jump(P_s, P_e, P_t, T1)
- for i in range(T1):
- POS = pos(JUMP[i][0], JUMP[i][1])
- EFT = POS + EFT1
- ass_main(ASS_BUF, SubL(ts1 + i, ts1 + i + 1, 30), EFT+t(fscy(80)),_TXT)
- ts2 = ts1 +T1
- EFT1 = an(5)+color3(CL[randint(0,9)])+color4(CL[randint(0,9)])+bord(2)+blur(4)
- T2 = 60
- P_s = (_X - 70,_Y)
- P_t = (_X - 90, _Y - 15)
- P_e = (_X - 110, _Y)
- JUMP = Jump(P_s, P_e, P_t, T2)
- for i in range(T2):
- POS = pos(JUMP[i][0], JUMP[i][1])
- EFT = POS + EFT1
- ass_main(ASS_BUF, SubL(ts2 + i+1, ts2 + i + 2, 30), EFT+fscy(80)+t(fscy(100)),_TXT)
- ass_main(ASS_BUF, SubL(ts2+T2+2, _ET,40),fad(0,200)+color3(CL[randint(0,9)])+color4(CL[randint(0,9)])+pos(_X- 110,_Y)+bord(2)+blur(4)+fscy(80)+t(0,100,fscy(100)), _TXT)
-
- elif _i>43 and _i < 55:
- for i in range(50):
- ass_main(ASS_BUF, SubL(_BT-10+_j*5,_BT+_j*5+42,60),mov(_X+randint(-20,20),_Y+randint(-20,20),_X+20+randint(-40,80),_Y+randint(-50,50))+fad(50,300)+color1('FFFFFF')+color3(CL[randint(0,9)])+color4(CL[randint(0,9)])+alpha3(200)+bord(0.5)+blur(2)+frz(45), '{\\p3}m 0 100 l 1 1 100 0 1 -1 0 -100 -1 -1 -100 0 -1 1 c m 6 6 s 6 -6 -6 -6 -6 6 c')
- ass_main(ASS_BUF, SubL(_BT-10+_j*5, _BT+_SK-10,30),an(5)+fad(200,200)+color1(CL[randint(0,9)])+color3(CL[randint(0,9)])+color4(CL[randint(0,9)])+bord(2)+blur(4)+move(_X-_A/2, _Y,_X,_Y)+t(fry(1800)),_TXT)
- for j in range(7):
- ass_main(ASS_BUF, SubL(_BT+_SK-10,_ET+10,10),move(_X+randint(-20,20),_Y+randint(-20,20),_X+randint(300,500),_Y+randint(-100,60))+fad(50,300)+color1(CL[randint(0,9)])+color3("FFFFFF")+color4("FFFFFF")+alpha3(200)+bord(0.5)+blur(2)+fr(100)+t(fr(1800)), '{\\p2}m 9 23 b 8 22 7 21 5 19 b 4 18 2 16 1 11 b 1 8 2 5 4 3 b 5 2 6 1 7 1 b 8 3 8 4 9 5 b 10 4 10 3 11 1 b 13 2 14 3 14 3 b 16 5 17 8 17 11 b 16 16 14 18 13 19 b 11 21 10 22 9 23 ')
- ass_main(ASS_BUF, SubL(_BT+_SK-20, _BT+_SK,40),an(5)+fad(200,200)+color3(CL[randint(0,9)])+color4(CL[randint(0,9)])+bord(2)+blur(4)+move(_X-20, _Y,_X,_Y)+fry(-90)+t(fry(270)),_TXT)
- ass_main(ASS_BUF, SubL( _BT+_SK, _ET,40),fad(50,300)+color3(CL[randint(0,9)])+color4(CL[randint(0,9)])+pos(_X,_Y)+bord(2)+blur(4), _TXT)
- elif _i == 55 or _i == 56 or _i == 57 or _i == 63 or _i == 64 or _i == 65:
- for i in range(15):
- ass_main(ASS_BUF, SubL( _BT+_SK-20, _BT+_SK+_KT+_j*5,20),an(5)+mov(_X-160-_j*35+randint(-20,20),_Y+40+randint(-20,20),_X-190-_j*35+randint(-60,60),_Y+40+randint(-60,60))+fad(50,300)+color1('FFFFFF')+color3(CL[randint(0,9)])+color4(CL[randint(0,9)])+alpha3(200)+bord(0.5)+blur(2)+frz(45), '{\\p3}m 0 100 l 1 1 100 0 1 -1 0 -100 -1 -1 -100 0 -1 1 c m 6 6 s 6 -6 -6 -6 -6 6 c')
- ass_main(ASS_BUF, SubL( _BT+_SK-20, _BT+_SK+_KT,20),an(5)+fad(50,200)+color3(CL[randint(0,9)])+color4(CL[randint(0,9)])+pos(_X-190-_j*35,_Y+40)+bord(2)+blur(4), _TXT)
- ass_main(ASS_BUF, SubL( _BT+_SK-20, _BT+_SK+_KT,10),an(5)+pos(_X-190-_j*35,_Y+40)+fad(50,300)+color1(CL[randint(0,9)])+color3(CL[randint(0,9)])+color4(CL[randint(0,9)])+alpha1(222)+alpha3(0)+bord(3)+blur(2)+fs(70)+t(frz(180)), "★")
- else:
- ass_main(ASS_BUF, SubL(_BT-10+_j*5, _BT+_SK-10,30),an(5)+fad(200,200)+color1(CL[randint(0,9)])+color3(CL[randint(0,9)])+color4(CL[randint(0,9)])+bord(2)+blur(4)+move(_X-350, _Y+50,_X-330,_Y+50)+t(fry(720))+fs(25),_TXT)
- ass_main(ASS_BUF, SubL(_BT+_SK-20, _BT+_SK,20),an(5)+fad(200,200)+color3(CL[randint(0,9)])+color4(CL[randint(0,9)])+bord(2)+blur(4)+move(_X-330, _Y+50,_X-330,_Y+50)+fs(25),_TXT)
- for k in range(1):
- ass_main(ASS_BUF, SubL(_BT+_SK-20, _BT+_SK,30),move(_X-330, _Y+50,_X-330,_Y+50)+fad(200,200)+color3(CL[randint(0,9)])+color4(CL[randint(0,9)])+alpha3(200)+bord(0.5)+blur(2), '{\\p4}m -3 124 b 1 78 25 42 73 15 b 105 1 149 0 189 21 b 217 40 243 69 251 105 b 255 150 249 199 195 237 b 181 249 141 268 83 250 b 31 228 -5 184 -3 124 m 83 247 b 123 261 167 252 193 234 b 235 210 241 174 247 148 b 251 132 249 117 245 108 b 239 66 211 45 187 27 b 169 16 155 15 135 21 b 123 22 133 31 129 34 b 129 37 105 42 99 39 b 87 34 93 28 91 24 b 89 18 83 19 79 21 b 73 24 49 31 39 45 b 21 63 11 84 5 108 b -3 129 3 150 7 168 b 15 193 29 208 41 222 b 57 232 69 241 83 247 m 45 48 b 49 48 51 49 49 52 b 41 57 35 63 33 70 b 31 76 33 85 29 93 b 23 103 19 111 15 121 b 5 123 7 114 7 108 b 7 99 13 90 15 82 b 17 78 21 72 25 67 b 27 66 29 66 31 64 b 37 60 41 54 45 48 m 113 46 b 147 55 115 58 113 46 m 215 210 l 175 213 l 215 214 b 215 214 215 216 217 216 b 219 219 219 220 221 220 b 221 232 221 246 221 258 b 223 246 223 232 223 220 b 223 220 225 219 227 219 l 241 231 l 227 217 b 227 216 229 214 229 213 l 267 213 l 229 211 l 229 210 l 227 208 l 227 208 l 241 195 l 227 207 b 225 205 225 205 223 204 l 223 165 l 221 204 b 219 205 217 205 217 207 l 203 193 l 217 208 l 215 208 l 215 210 l 215 210 m 217 219 b 217 217 217 217 217 216 b 219 213 223 210 225 205 b 225 207 227 207 227 207 ')
- ass_main(ASS_BUF, SubL( _BT+_SK, _BT+_SK+_KT+_j*5+50,10),fad(50,300)+color3(CL[randint(0,9)])+color4(CL[randint(0,9)])+move(_X-330,_Y+50,_X-330,_Y+100)+bord(2)+blur(4)+fs(25), _TXT)
- for k in range(1):
- ass_main(ASS_BUF, SubL( _BT+_SK, _BT+_SK+_KT+_j*5+50,20),move(_X-330,_Y+50,_X-330,_Y+100)+fad(50,300)+color3(CL[randint(0,9)])+color4(CL[randint(0,9)])+alpha3(200)+bord(0.5)+blur(2), '{\\p4}m -3 124 b 1 78 25 42 73 15 b 105 1 149 0 189 21 b 217 40 243 69 251 105 b 255 150 249 199 195 237 b 181 249 141 268 83 250 b 31 228 -5 184 -3 124 m 83 247 b 123 261 167 252 193 234 b 235 210 241 174 247 148 b 251 132 249 117 245 108 b 239 66 211 45 187 27 b 169 16 155 15 135 21 b 123 22 133 31 129 34 b 129 37 105 42 99 39 b 87 34 93 28 91 24 b 89 18 83 19 79 21 b 73 24 49 31 39 45 b 21 63 11 84 5 108 b -3 129 3 150 7 168 b 15 193 29 208 41 222 b 57 232 69 241 83 247 m 45 48 b 49 48 51 49 49 52 b 41 57 35 63 33 70 b 31 76 33 85 29 93 b 23 103 19 111 15 121 b 5 123 7 114 7 108 b 7 99 13 90 15 82 b 17 78 21 72 25 67 b 27 66 29 66 31 64 b 37 60 41 54 45 48 m 113 46 b 147 55 115 58 113 46 m 215 210 l 175 213 l 215 214 b 215 214 215 216 217 216 b 219 219 219 220 221 220 b 221 232 221 246 221 258 b 223 246 223 232 223 220 b 223 220 225 219 227 219 l 241 231 l 227 217 b 227 216 229 214 229 213 l 267 213 l 229 211 l 229 210 l 227 208 l 227 208 l 241 195 l 227 207 b 225 205 225 205 223 204 l 223 165 l 221 204 b 219 205 217 205 217 207 l 203 193 l 217 208 l 215 208 l 215 210 l 215 210 m 217 219 b 217 217 217 217 217 216 b 219 213 223 210 225 205 b 225 207 227 207 227 207 ')
- for k in range(8):
- ass_main(ASS_BUF, SubL(_BT+_SK-20,_BT+_SK+_KT*3,10),mov(_X-330+randint(-20,20),_Y+50+randint(-20,20),_X-330+randint(-40,40),_Y+50+randint(-80,-50))+fad(50,200)+color3(CL[randint(0,9)])+color4(CL[randint(0,9)])+alpha3(200)+bord(0.5)+blur(2), '{\\p6}m -3 124 b 1 78 25 42 73 15 b 105 1 149 0 189 21 b 217 40 243 69 251 105 b 255 150 249 199 195 237 b 181 249 141 268 83 250 b 31 228 -5 184 -3 124 m 83 247 b 123 261 167 252 193 234 b 235 210 241 174 247 148 b 251 132 249 117 245 108 b 239 66 211 45 187 27 b 169 16 155 15 135 21 b 123 22 133 31 129 34 b 129 37 105 42 99 39 b 87 34 93 28 91 24 b 89 18 83 19 79 21 b 73 24 49 31 39 45 b 21 63 11 84 5 108 b -3 129 3 150 7 168 b 15 193 29 208 41 222 b 57 232 69 241 83 247 m 45 48 b 49 48 51 49 49 52 b 41 57 35 63 33 70 b 31 76 33 85 29 93 b 23 103 19 111 15 121 b 5 123 7 114 7 108 b 7 99 13 90 15 82 b 17 78 21 72 25 67 b 27 66 29 66 31 64 b 37 60 41 54 45 48 m 113 46 b 147 55 115 58 113 46 m 215 210 l 175 213 l 215 214 b 215 214 215 216 217 216 b 219 219 219 220 221 220 b 221 232 221 246 221 258 b 223 246 223 232 223 220 b 223 220 225 219 227 219 l 241 231 l 227 217 b 227 216 229 214 229 213 l 267 213 l 229 211 l 229 210 l 227 208 l 227 208 l 241 195 l 227 207 b 225 205 225 205 223 204 l 223 165 l 221 204 b 219 205 217 205 217 207 l 203 193 l 217 208 l 215 208 l 215 210 l 215 210 m 217 219 b 217 217 217 217 217 216 b 219 213 223 210 225 205 b 225 207 227 207 227 207 ')
- return (ASS_BUF,None)
复制代码 视频预览
|
-
1
查看全部评分
-
|