Tag

alpha-blending

0 views collected around this technical thread.

Laravel Tech Community
Laravel Tech Community
Aug 31, 2021 · Backend Development

PHP imagelayereffect Function: Setting Alpha Blending for GD Layered Effects

The PHP GD library function imagelayereffect sets an alpha blending flag to enable layered effects such as overlay on an image resource, describing its parameters, return values, and providing a complete example that creates, modifies, outputs, and destroys an image.

GDOverlayalpha-blending
0 likes · 2 min read
PHP imagelayereffect Function: Setting Alpha Blending for GD Layered Effects
Tencent Music Tech Team
Tencent Music Tech Team
Aug 14, 2020 · Frontend Development

Web Implementation of Transparent Video Gift Animations Using Canvas and WebGL

The article describes how a live‑room video‑gift feature originally built for mobile was ported to a web client by extracting separate color and alpha video streams, compositing them on canvas, then migrating the per‑pixel blending to WebGL shaders, which cut CPU usage dramatically, raise frame rates to about 60 FPS, and outline further optimisations such as pre‑loading, mobile support, and possible MSE or WebAssembly approaches.

Performance OptimizationWebGLalpha-blending
0 likes · 9 min read
Web Implementation of Transparent Video Gift Animations Using Canvas and WebGL