You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

graphics-ts

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphics-ts

A porting of purescript-{canvas, free-canvas, drawing} featuring fp-ts

1.1.0
latest
Source
npmnpm
Version published
Weekly downloads
66
230%
Maintainers
1
Weekly downloads
 
Created
Source

Functional bindings for the HTML Canvas API

Inspired by

  • purescript-canvas
  • purescript-free-canvas
  • purescript-drawing

Installation

To install the stable version:

npm install graphics-ts fp-ts fp-ts-contrib

Note: fp-ts and fp-ts-contrib are peer dependencies for graphics-ts

Documentation

Example

To run the example, clone the repository and run the following:

npm install
npm start
open example/test.html
snowflake

Adapted from https://github.com/purescript-contrib/purescript-drawing/blob/master/test/Main.purs

Keywords

typescript

FAQs

Package last updated on 17 Jul 2020

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