Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Authors:
This project aims to be a complete port of the Canvas2D API implemented in a WebGL context. WebGL-2D is a proof of concept and attempts to ascertain performance improvements over Canvas2D.
It should allow most Canvas2D applications to be switched to a WebGL context.
Check out a LIVE DEMO!
Switching your Canvas2D sketch to a WebGL2D is very simple and only requires one additional line of code:
var cvs = document.getElementById("myCanvas");
WebGL2D.enable(cvs); // adds "webgl-2d" context to cvs
var ctx = cvs.getContext("webgl-2d"); // easily switch between "webgl-2d" and "2d" contexts
WebGL-2D is a work in progress and currently supports a very small subset of the Canvas2D API.
*fill and stroke only work on straight line paths supported above, arc, and curves are not yet supported.
All other properties or functions are currently stubbed. Properties are set to their defaults and functions are empty.
WebGL-2D should be faster than Canvas2D at certain things and slower at others. It is important that you know what to expect when using WebGL-2D with your project.
The benchmarks directory contains benchmarks for testing performance
asteroidsbench/
Kevin Roast has graciously given permission to include this benchmark in the WebGL-2D project.
This benchmark is perfect for testing real world canvas usage in game engine. It relies heavily on 9 arg drawImage cropping to implement scrolling backgrounds and stripstrip animations.
Visit his website for other HTML5 canvas demos as well as the asteroids game
FAQs
Canvas to web-gl converter
We found that webgl-2d demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.