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

webgl-plot

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webgl-plot

High-performance 2D plotting framework based on native WebGL

  • 0.2.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1K
decreased by-3.94%
Maintainers
1
Weekly downloads
 
Created
Source

Build Action

webgl-plot

multi-line high-performance 2D graphs using native WebGL. The advantages are:

  • Simple and efficient 2D WebGL interface
  • Using WebGL native line drawing
  • Using vec2 instead of vec3 to in the vertex shader to decrease the CPU utilization
  • Full control over the color of each line in each frame
  • No dependencies
  • Works on any browser/platfrom that supports WebGL
  • Ideal for embedded systems with low resources

What are the use cases?

When plotting real-time multiple waveforms are required. For example, software-based oscilloscopes, Arduino, microcontrollers, FPGA user interfaces. This framework also can be used in combination with ElectronJS.

Limitations

cannot change the line width due to the OpenGL implementation of Line. The OpenGL specification only guarantees a minimum of a single pixel line width. There are other solutions to increase the line width however they substantially increase the size of data vector and take a hit on the performance.

Why TypeScript?

Because it is much more convenient to maintain and scale up. If you are not familiar with TS, then just use the examples as your template.

Getting started

See examples at webgl-plot-examples

How to use with embedded systems applications?

You can use WebUSB, Web Bluetooth, and Serial API. Examples will be provided soon.

Build

npm i
npm run build

License

MIT

FAQs

Package last updated on 12 Jan 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

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