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

#include <KoCompositeOpFunctions.h>

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

Definition at line 929 of file KoCompositeOpFunctions.h.

Member Function Documentation

◆ composeChannel()

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

Definition at line 930 of file KoCompositeOpFunctions.h.

930 {
931 using namespace Arithmetic;
932 // see http://www.pegtop.net/delphi/articles/blendmodes/quadratic.htm for formulas of Quadratic Blending Modes like Glow, Reflect, Freeze, and Heat
933
934 if(isUnitValueFuzzy<T>(dst)) {
935 return unitValue<T>();
936 }
937
938 if(isUnitValueFuzzy<T>(CFHardMixPhotoshop<T>::composeChannel(src, dst))) {
939 return cfGlow(src,dst);
940 }
941
942 return (cfHeat(src,dst));
943 }
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: