You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

canvas-hd

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvas-hd

Draw in high definition to a CanvasRenderingContext2D

1.0.1
latest
Source
npm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

High Quality Canvas Rendering

This is a small library which comes with its own wrapper for creating a 2D rendering context that will draw anything on it in high definition. It is based on this great article. Unlike most other APIs, it won't influcence customly applied transformations.

const makeHD = require('canvas-hd')

const canvas = document.createElement('canvas')
const ctxt1 = makeHD(canvas)

// if you ever lose the context
const ctxt2 = makeHD(canvas)

Keywords

canvas

FAQs

Package last updated on 28 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts