KDE contrast


set_region(region: object<wl_region>)
Argument
Type
Description
regionobject<wl_region>allow null
set_contrast(contrast: fixed)
Argument
Type
Description
contrastfixed
set_intensity(intensity: fixed)
Argument
Type
Description
intensityfixed
set_saturation(saturation: fixed)
Argument
Type
Description
saturationfixed
release()
Release the contrast object
set_frost(red: int, green: int, blue: int, alpha: int)
Argument
Type
Description
redint
greenint
blueint
alphaint
Opt into frost effect w/ given colour

enables 'frost' variant of contrast effect.

'frost' is an enhanced version of the contrast effect that uses different colour arithmetic to get backgrounds simultaneously higher in contrast and (apparent) transparency.

r, g, b, a are channels from 0-255, indicating a colour to use in contrast calculation. should be based off of the "main" background colour of the surface.

unset_frost()
Opts out of frost effect

SPDX-FileCopyrightText: 2015 Martin Gräßlin SPDX-FileCopyrightText: 2015 Marco Martin

SPDX-License-Identifier: LGPL-2.1-or-later