-- 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}, } GROUP_COLORS={ [0]=COLOR.Z, [1]={STRING.hexColor'e57373'}, [2]={STRING.hexColor"4caf50"}, [3]={STRING.hexColor'5c6bc0'}, [4]={STRING.hexColor'ffe082'}, [5]={STRING.hexColor'ba68c8'}, [6]={STRING.hexColor'80deea'}, } do-- SVG_TITLE_FILL, SVG_TITLE_LINE SVG_TITLE_FILL={ { 0,0, 0,34, 63,34, 63,227, 97,227, 97,34, 160,34, 160,0, }, { 126,60, 244,60, 244,94, 160,94, 160,127, 230,127, 230,161, 160,161, 160,194, 244,194, 244,227, 126,227, }, { 262,82, 283,60, 385,60, 385,94, 296,94, 296,194, 385,194, 385,227, 283,227, 262,206, }, { 404,60, 437,60, 437,127, 505,127, 505,60, 538,60, 538,227, 505,227, 505,161, 437,161, 437,227, 404,227, }, { 558,60, 604,60, 640,153, 676,60, 722,60, 722,227, 688,227, 688,108, 655,194, 625,194, 591,108, 591,227, 558,227, }, { 743,60, 777,60, 777,227, 743,227, }, { 798,60, 831,60, 899,173, 899,60, 933,60, 933,227, 899,227, 831,115, 831,227, 798,227, }, { 950,82, 971,60, 1064,60, 1085,82, 1085,206, 1064,227, 971,227, 950,206, 950,82, 984,94, 984,194, 1051,194, 1051,94, 984,94, }, } for _,C in next,SVG_TITLE_FILL do for i=1,#C do C[i]=C[i]*.94 end end SVG_TITLE_LINE=TABLE.shift(SVG_TITLE_FILL) SVG_TITLE_LINE[8],SVG_TITLE_LINE[9]={},{} for j=1,16 do SVG_TITLE_LINE[8][j]=SVG_TITLE_FILL[8][j] end for j=19,#SVG_TITLE_FILL[8]-2 do SVG_TITLE_LINE[9][j-18]=SVG_TITLE_FILL[8][j] end end do-- SVG_TITLE_FAN SVG_TITLE_FAN={} local sin,cos=math.sin,math.cos for i=1,9 do local L=TABLE.copy(SVG_TITLE_LINE[i]) SVG_TITLE_FAN[i]=L for j=1,#L,2 do local x,y=L[j],L[j+1]-- 0