Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ait-canvas

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ait-canvas

Ait module with html canvas bindings

  • 0.6.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14
increased by40%
Maintainers
0
Weekly downloads
 
Created
Source

ait-canvas

Canvas words for the Ait Language

Install

npm install mollerse/ait-canvas

Usage

Browser

@load ait-canvas ;

"canvas" createElement canvasContext

Load the module. Create a canvas-element (or grab an existing one, doesn't matter) and grab the canvasContext. Now you can use the canvas words in this pacakge.

Node

The canvas is normaly not available in node, but there is a package called canvas which can be used. The bindings for this is available in the node.js file. It can be used like this:

@load ait-canvas ;
@load ait-canvas/node ;

nodeCanvas canvasContext

The main difference is the nodeCanvas word which gives you an instance of node-canvas.

Still missing

  • Image drawing
  • Text
  • Pixel manipulation

Keywords

FAQs

Package last updated on 24 Aug 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc