Krita Source Code Documentation
Loading...
Searching...
No Matches
CFFlatLight< T > Struct Template Reference

#include <KoCompositeOpFunctions.h>

+ Inheritance diagram for CFFlatLight< T >:

Static Public Member Functions

static T composeChannel (T src, T dst)
 
- Static Public Member Functions inherited from KoClampedSourceAndDestinationCompositeOpGenericFunctorBase< T >
static T clampDestinationChannelValue (T value)
 
static T clampSourceChannelValue (T value)
 

Detailed Description

template<typename T>
struct CFFlatLight< T >

Definition at line 1320 of file KoCompositeOpFunctions.h.

Member Function Documentation

◆ composeChannel()

template<typename T >
static T CFFlatLight< T >::composeChannel ( T src,
T dst )
inlinestatic

Definition at line 1321 of file KoCompositeOpFunctions.h.

1321 {
1322 using namespace Arithmetic;
1323
1324 if (isZeroValueFuzzy<T>(src)) {
1325 return zeroValue<T>();
1326 }
1327
1328 return clamp<T>(isUnitValueFuzzy<T>(CFHardMixPhotoshop<T>::composeChannel(inv(src),dst)) ?
1330 CFPenumbraA<T>::composeChannel(src,dst));
1331 }
static T composeChannel(T src, T dst)

References CFPenumbraA< T >::composeChannel().


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