# canvas_pro **Repository Path**: langsun666/canvas_pro ## Basic Information - **Project Name**: canvas_pro - **Description**: 如果你在寻找一个使用JavaScript 的WEBGL 来绘制的2d图形库,或者平替当前使用的原生canvas API,以提高图层绘制和管理的性能。那么你可以尝试使用一下这个简单、轻量、易用的库 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2026-01-18 - **Last Updated**: 2026-01-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Canvas pro If you're looking for a 2D graphics library that uses JavaScript and WEBGL for drawing, or a replacement for the current native canvas API to improve the performance of layer drawing and management, then you can try this simple, lightweight, and easy-to-use library. ### Reconstructing the HTML Canvas API based on WebGL - A library that reconstructs the native Canvas API using WebGL. - Can be directly converted and used with just one line of code. - In addition to supporting all native Canvas APIs, it provides more graphics drawing APIs. - Has a monitorable drawing lifecycle. - Built-in redrawing after transformations such as displacement, scaling, and rotation. - Provides layer management. - Supports controlling a single layer in a multi-layer scene. - Supports off-screen rendering and rendering pipeline buffering. - Developed with TypeScript, offering good type hints. - Manages layers based on the browser's native events, making layer drawing management lighter and faster. - Packaged using Rslib, supporting outputs such as swc and module federation.[rslib](https://lib.rsbuild.dev/zh/guide/start/quick-start) - Supports WebWorker background rendering. ## Author - Haisen Liu [@threemu](http://threemu.top) ## Easy to Use You can use it directly with just one line of code. ```html