WebGL and Canvas mixed rendering-based multi-thermodynamic diagram high-performance display method and system
CN120635272AInactive Publication Date: 2025-09-12WEIHAI JQ- IND TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by
Patent Information
- Application Number
- CN202510690795.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-27
- Publication Date
- 2025-09-12
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure CN120635272A_ABST
Abstract
The invention belongs to the technical field of computer graphics, and particularly relates to a multi-thermodynamic diagram high-performance display method based on WebGL and Canvas hybrid rendering, which comprises the following steps of: 1) receiving a plurality of groups of original one-dimensional arrays, converting a data format, and arranging according to a longitudinal sequence; 2), initializing a WebGL context, and setting a Blend mixed mode; (3) creating a gray scale drawing shader program I, drawing points through a drawArrays interface, and generating a transparency channel; 4) switching to a second color mapping shader program, and drawing a triangular belt by utilizing a drawArray interface to fill the canvas; (5) after all the thermodynamic diagrams are drawn, the coordinates and the size of each thermodynamic diagram in the off-screen WebGL canvas are recorded; (6) a Canvas 2D context is used for creating a positioning canvas; and 7) performing positioning cutting on each thermodynamic diagram, and performing full-screen rendering. The system comprises a data processing module, a WebGL rendering module and a layout control module. According to the invention, a thermodynamic diagram rendering mode with both high performance and flexible layout is realized.
Need to check novelty before this filing date? Find Prior Art