aboutsummaryrefslogtreecommitdiff
path: root/src/api/skills.rs
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2019-12-08 03:23:16 +0100
committerDaniel Schadt <kingdread@gmx.de>2019-12-08 03:23:16 +0100
commit84dd675977b099b1ff79fe1589007cc8103c07ea (patch)
treec3f3fcd1a76666f80e5ca2972c9bf0eed98e03f1 /src/api/skills.rs
parent8a05058090b470624994c6691e5169a362f9431d (diff)
downloadkondou-84dd675977b099b1ff79fe1589007cc8103c07ea.tar.gz
kondou-84dd675977b099b1ff79fe1589007cc8103c07ea.tar.bz2
kondou-84dd675977b099b1ff79fe1589007cc8103c07ea.zip
improve antialiasing of thick lines
As it turns out, the algorithm for drawing convex polygons is very bad at handling aliasing, and the line height looked off as well. The new algorithm fixes the issue by first drawing a horizontal filled rectangle, then rotating the rectangle by the required angle (using bicubic filtering) and finally overlaying the rectangle onto the target. This improves both the looks of the line height and the aliasing effects.
Diffstat (limited to 'src/api/skills.rs')
0 files changed, 0 insertions, 0 deletions