Created
          November 4, 2018 16:37 
        
      - 
      
 - 
        
Save onurkerimov/0e58a1913fecbf66da46098f9d21b322 to your computer and use it in GitHub Desktop.  
    Note to self
  
        
  
    
      This file contains hidden or 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
    
  
  
    
  | var cnv = $('canvas')[0]; | |
| var ctx = cnv.getContext('2d'); | |
| var ratio = window.devicePixelRatio | |
| if (ratio) { | |
| ratio *= 1.5; | |
| var w = $(cnv).attr('width'); | |
| var h = $(cnv).attr('height'); | |
| $(cnv).attr('width', w * ratio); | |
| $(cnv).attr('height', h * ratio); | |
| $(cnv).css('width', w); | |
| $(cnv).css('height', h); | |
| ctx.scale(ratio, ratio); | |
| } | |
| ctx.font = "25px Open Sans"; | |
| ctx.fillText("Send Nudes", 10, 20); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment