Krita Source Code Documentation
Loading...
Searching...
No Matches
CFDarkerColor< HSXType, channels_type > Struct Template Reference

#include <KoCompositeOpFunctions.h>

+ Inheritance diagram for CFDarkerColor< HSXType, channels_type >:

Static Public Member Functions

static void composeChannels (float srcR, float srcG, float srcB, float &dstR, float &dstG, float &dstB)
 
- Static Public Member Functions inherited from KoClampedSourceAndDestinationCompositeOpGenericFunctorBase< channels_type >
static channels_type clampDestinationChannelValue (channels_type value)
 
static channels_type clampSourceChannelValue (channels_type value)
 

Detailed Description

template<class HSXType, typename channels_type>
struct CFDarkerColor< HSXType, channels_type >

Definition at line 301 of file KoCompositeOpFunctions.h.

Member Function Documentation

◆ composeChannels()

template<class HSXType , typename channels_type >
static void CFDarkerColor< HSXType, channels_type >::composeChannels ( float srcR,
float srcG,
float srcB,
float & dstR,
float & dstG,
float & dstB )
inlinestatic

Definition at line 303 of file KoCompositeOpFunctions.h.

303 {
304 const float lum = getLightness<HSXType>(dstR, dstG, dstB);
305 const float lum2 = getLightness<HSXType>(srcR, srcG, srcB);
306 if (lum > lum2) {
307 dstR = srcR;
308 dstG = srcG;
309 dstB = srcB;
310 }
311 }

The documentation for this struct was generated from the following file: