Created
March 28, 2018 08:17
-
-
Save josemmo/4fce33f75a4cd449205ff7e979b03b21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Canvas fingerprint | |
var canvas = document.createElement('canvas'); | |
var ctx = canvas.getContext('2d'); | |
var canvasTxt = 'Texto de prueba'; | |
ctx.textBaseline = 'top'; | |
ctx.font = '16px Arial'; | |
ctx.textBaseline = 'alphabetic'; | |
ctx.fillStyle = '#f60'; | |
ctx.fillRect(125, 1, 62, 20); | |
ctx.fillStyle = '#069'; | |
ctx.fillText(canvasTxt, 2, 15); | |
ctx.fillStyle = 'rgba(102, 204, 0, 0.7)'; | |
ctx.fillText(canvasTxt, 4, 17); | |
fp_sources.hardware.canvas = canvas.toDataURL(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment