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

#include <KoCompositeOpFunctions.h>

+ Inheritance diagram for CFHelow< 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 CFHelow< T >

Definition at line 894 of file KoCompositeOpFunctions.h.

Member Function Documentation

◆ composeChannel()

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

Definition at line 895 of file KoCompositeOpFunctions.h.

895 {
896 using namespace Arithmetic;
897 // see http://www.pegtop.net/delphi/articles/blendmodes/quadratic.htm for formulas of Quadratic Blending Modes like Glow, Reflect, Freeze, and Heat
898
899 if (isUnitValueFuzzy<T>(CFHardMixPhotoshop<T>::composeChannel(src,dst))) {
900 return cfHeat(src,dst);
901 }
902
903 if (isZeroValueFuzzy<T>(src)) {
904 return zeroValue<T>();
905 }
906
907 return (cfGlow(src,dst));
908 }
T cfHeat(T src, T dst)
T cfGlow(T src, T dst)

References cfGlow(), and cfHeat().


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