๐Ÿ”ฐcompositing

rendering mode

browser โŸฉ canvas โŸฉ state โŸฉ compositing

the process of combining new (source) pixels with existing (destination) pixels.

rendering mode

  • source-over๏ผšsource (new) pixels are drawn over destination (old) pixels.

  • destination-over๏ผšdestination (old) pixels are drawn over source (new) pixels.

  • source-atop๏ผš่ถ…ๅ‡บ destination ็š„้ƒจๅˆ†ๆœƒ่ขซๅฎŒๅ…จๆˆชๆŽ‰ใ€‚

Last updated