http://sidneys77crlfslcr7zmj3msmxchgnxhrxlp3p3kbaswo7twchjnicid.onion/programming/tips/2024/12/02/html5-canvas-tips.html
To do this, we
need to use an opaque canvas, created by passing some options to the canvas’ getContext function. const canvas = document . getElementById ( ' cleartype-canvas ' ); const ctx = canvas . getContext ( ' 2d ' , { alpha : false } ); Browser-Rendered Text Hello, World! Default Canvas-Rendered Text, With HI-DPI Fix Opaque Canvas-Rendered Text, With HI-DPI and ClearType Fix Matching Background Colors on an Opaque Canvas When using an opaque canvas, the default fill color when...