mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-03 23:00:58 +00:00 
			
		
		
		
	Canvas now supports compositing and various blending modes via the `globalCompositeOperation` attribute.
		
			
				
	
	
		
			44 lines
		
	
	
	
		
			639 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
	
		
			639 B
		
	
	
	
		
			C++
		
	
	
	
	
	
/*
 | 
						|
 * Copyright (c) 2025, Glenn Skrzypczak <glenn.skrzypczak@gmail.com>
 | 
						|
 *
 | 
						|
 * SPDX-License-Identifier: BSD-2-Clause
 | 
						|
 */
 | 
						|
 | 
						|
#pragma once
 | 
						|
 | 
						|
namespace Gfx {
 | 
						|
 | 
						|
enum class CompositingAndBlendingOperator {
 | 
						|
    Normal,
 | 
						|
    Multiply,
 | 
						|
    Screen,
 | 
						|
    Overlay,
 | 
						|
    Darken,
 | 
						|
    Lighten,
 | 
						|
    ColorDodge,
 | 
						|
    ColorBurn,
 | 
						|
    HardLight,
 | 
						|
    SoftLight,
 | 
						|
    Difference,
 | 
						|
    Exclusion,
 | 
						|
    Hue,
 | 
						|
    Saturation,
 | 
						|
    Color,
 | 
						|
    Luminosity,
 | 
						|
    Clear,
 | 
						|
    Copy,
 | 
						|
    SourceOver,
 | 
						|
    DestinationOver,
 | 
						|
    SourceIn,
 | 
						|
    DestinationIn,
 | 
						|
    SourceOut,
 | 
						|
    DestinationOut,
 | 
						|
    SourceATop,
 | 
						|
    DestinationATop,
 | 
						|
    Xor,
 | 
						|
    Lighter,
 | 
						|
    PlusDarker,
 | 
						|
    PlusLighter
 | 
						|
};
 | 
						|
 | 
						|
}
 |