@@ -332,8 +332,8 @@ async function addBackBox(
332332 //corners
333333 ctx . drawImage ( tl , x , y )
334334 ctx . drawImage ( tr , x + xlen - 32 , y )
335- ctx . drawImage ( bl , x - 6 , y + ylen - 32 )
336- ctx . drawImage ( br , x - 6 + xlen - 38 , y + ylen - 32 )
335+ ctx . drawImage ( bl , x - 6 , y + ylen - 32 )
336+ ctx . drawImage ( br , x - 6 + xlen - 38 , y + ylen - 32 )
337337
338338 //border
339339 ctx . fillStyle = '#BAC2D2'
@@ -342,10 +342,10 @@ async function addBackBox(
342342 ctx . fillRect ( x + xlen , y + 32 , - 9 , ylen - 64 )
343343 ctx . fillRect ( x + 38 , y + ylen , xlen - 82 , - 9 )
344344
345- //shadow
346- ctx . fillStyle = '#47746C '
345+ //shadows
346+ ctx . fillStyle = '#1b3233 '
347347 ctx . fillRect ( x + 38 , y + ylen , xlen - 76 , 12 )
348- ctx . fillRect ( x , y + 32 , - 6 , ylen - 46 )
348+ ctx . fillRect ( x , y + 48 , - 6 , ylen - 58 )
349349}
350350
351351function normalizeDataPosition (
@@ -1065,17 +1065,20 @@ export async function drawPlayerStatsCanvas(
10651065 const canvas = new Canvas ( config . width * scale , config . height * scale )
10661066 const ctx = canvas . getContext ( '2d' )
10671067
1068+ ctx . imageSmoothingEnabled = false
10681069 ctx . scale ( 2 , 2 )
10691070
10701071 //back elements
10711072 await addBackground ( ctx , playerData . stat_background )
1073+ ctx . imageSmoothingEnabled = false
10721074 await addBackBox (
10731075 ctx ,
10741076 config . width / 32 ,
10751077 config . height / 32 ,
10761078 config . width - config . width / 16 ,
10771079 config . height - config . height / 12 ,
10781080 )
1081+ ctx . imageSmoothingEnabled = true
10791082
10801083 //top elements
10811084 await drawAvatar ( ctx , 60 , 50 , 110 , playerData )
0 commit comments