--Static data tables BLOCK_NAMES={ 'Z','S','J','L','T','O','I', 'Z5','S5','P','Q','F','E', 'T5','U','V','W','X', 'J5','L5','R','Y','N','H','I5', 'I3','C','I2','O1' } BLOCK_CHARS={}for i=1,#BLOCK_NAMES do BLOCK_CHARS[i]=CHAR.mino[BLOCK_NAMES[i]]end BLOCK_COLORS={ COLOR.R,COLOR.F,COLOR.O,COLOR.Y,COLOR.L,COLOR.J,COLOR.G,COLOR.A, COLOR.C,COLOR.N,COLOR.S,COLOR.B,COLOR.V,COLOR.P,COLOR.M,COLOR.W, COLOR.dH,COLOR.D,COLOR.lY,COLOR.H,COLOR.lH,COLOR.dV,COLOR.dR,COLOR.dG, } RANK_CHARS={'B','A','S','U','X'}for i=1,#RANK_CHARS do RANK_CHARS[i]=CHAR.icon['rank'..RANK_CHARS[i]]end RANK_COLORS={ {.8,.86,.9}, {.6,.9,.7}, {.93,.93,.65}, {1,.5,.4}, {.95,.5,.95}, } do--SVG_TITLE SVG_TITLE={ { 53, 60, 1035, 0, 964, 218, 660, 218, 391, 1300, 231, 1154, 415, 218, 0, 218, }, { 716, 290, 1429, 290, 1312, 462, 875, 489, 821, 695, 1148, 712, 1017, 902, 761, 924, 707, 1127, 1106, 1101, 1198, 1300, 465, 1300, }, { 1516, 287, 2102, 290, 2036, 464, 1598, 465, 1322, 905, 1395, 1102, 1819, 1064, 1743, 1280, 1286, 1310, 1106, 902, }, { 2179, 290, 2411, 290, 2272, 688, 2674, 666, 2801, 290, 3041, 290, 2693, 1280, 2464, 1280, 2601, 879, 2199, 897, 2056, 1280, 1828, 1280, }, { 3123, 290, 3480, 290, 3496, 480, 3664, 290, 4017, 294, 3682, 1280, 3453, 1280, 3697, 578, 3458, 843, 3304, 842, 3251, 561, 3001, 1280, 2779, 1280, }, { 4088, 290, 4677, 290, 4599, 501, 4426, 502, 4219, 1069, 4388, 1070, 4317, 1280, 3753, 1280, 3822, 1068, 3978, 1068, 4194, 504, 4016, 504, }, { 4747, 290, 4978, 295, 4921, 464, 5186, 850, 5366, 290, 5599, 295, 5288, 1280, 5051, 1280, 5106, 1102, 4836, 709, 4641, 1280, 4406, 1280, }, { 5814, 290, 6370, 295, 6471, 415, 6238, 1156, 6058, 1280, 5507, 1280, 5404, 1154, 5635, 416, -- 5814, 290, -- 5878, 463, 5770, 542, 5617, 1030, 5676, 1105, 5995, 1106, 6100, 1029, 6255, 541, 6199, 465, 5878, 463, }, } for _,C in next,SVG_TITLE do for i=1,#C do C[i]=C[i]*.1626 end end end do--SVG_TITLE_FAN SVG_TITLE_FAN={} local sin,cos=math.sin,math.cos for i=1,8 do local L={} SVG_TITLE_FAN[i]=L for j=1,#SVG_TITLE[i]do L[j]=SVG_TITLE[i][j] end for j=1,#L,2 do local x,y=L[j],L[j+1]--0