mirror of
https://github.com/journey-ad/Moe-Counter.git
synced 2024-11-30 18:24:28 +01:00
feat: render images as pixelated
This removes the smoothing filter and makes sure the pixels stay the same no matter how much you zoom in.
This commit is contained in:
parent
c3cf12769c
commit
45c3930c95
@ -53,7 +53,7 @@ function getCountImage({ count, theme='moebooru', length=7 }) {
|
|||||||
}, '')
|
}, '')
|
||||||
|
|
||||||
return `<?xml version="1.0" encoding="UTF-8"?>
|
return `<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<svg width="${x}" height="${y}" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
<svg width="${x}" height="${y}" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="image-rendering: pixelated;">
|
||||||
<title>Moe Count</title>
|
<title>Moe Count</title>
|
||||||
<g>
|
<g>
|
||||||
${parts}
|
${parts}
|
||||||
|
Loading…
Reference in New Issue
Block a user