mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 17:44:56 +09: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
|
|
};
|
|
|
|
}
|