raster Color Mix
When raster-color is active, specifies how the raster value is computed from a non-rasterarray source's channels, using the equation mix.r - src.r + mix.g - src.g + mix.b - src.b + mix.a. The first three components weight the source's red, green, and blue channels; the fourth is a constant offset and is not multiplied by source alpha. Source alpha is carried through and applied as opacity to the colorized result. The default corresponds to RGB luminosity. rasterarray sources ignore this property, as their raster value is decoded directly from the source data. Default value: 0.2126,0.7152,0.0722,0.
Use static method RasterLayer.defaultRasterColorMix to set the default property.
Parameters
value of rasterColorMix
When raster-color is active, specifies how the raster value is computed from a non-rasterarray source's channels, using the equation mix.r - src.r + mix.g - src.g + mix.b - src.b + mix.a. The first three components weight the source's red, green, and blue channels; the fourth is a constant offset and is not multiplied by source alpha. Source alpha is carried through and applied as opacity to the colorized result. The default corresponds to RGB luminosity. rasterarray sources ignore this property, as their raster value is decoded directly from the source data. Default value: 0.2126,0.7152,0.0722,0.
Use static method RasterLayer.defaultRasterColorMixAsExpression to set the default property.
Parameters
value of rasterColorMix as Expression
When raster-color is active, specifies how the raster value is computed from a non-rasterarray source's channels, using the equation mix.r - src.r + mix.g - src.g + mix.b - src.b + mix.a. The first three components weight the source's red, green, and blue channels; the fourth is a constant offset and is not multiplied by source alpha. Source alpha is carried through and applied as opacity to the colorized result. The default corresponds to RGB luminosity. rasterarray sources ignore this property, as their raster value is decoded directly from the source data. Default value: 0.2126,0.7152,0.0722,0.