Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
dt_drawlayer_brush_profile_const_t Struct Reference

The part of the profile that depends on the dab and not on the pixel. More...

#include <brush_profile.h>

+ Collaboration diagram for dt_drawlayer_brush_profile_const_t:

Data Fields

int shape
 
gboolean gaussian
 
gboolean flat
 
float inner
 
float width
 

Detailed Description

The part of the profile that depends on the dab and not on the pixel.

dt_drawlayer_brush_profile_eval recomputed hardness, min_inner, inner and the transition width for EVERY pixel of every dab, although all four are properties of the dab. Resolve them once with dt_drawlayer_brush_profile_prepare and evaluate with dt_drawlayer_brush_profile_eval_fast, which performs the identical arithmetic on the identical operands and therefore returns identical floats.

Definition at line 98 of file brush_profile.h.

Field Documentation

◆ flat

gboolean dt_drawlayer_brush_profile_const_t::flat

Hardness saturates: the profile is 1 everywhere inside the disc.

Definition at line 102 of file brush_profile.h.

Referenced by dt_drawlayer_brush_profile_eval_fast().

◆ gaussian

gboolean dt_drawlayer_brush_profile_const_t::gaussian

Shape is GAUSSIAN: the analytic branch, no inner/width.

Definition at line 101 of file brush_profile.h.

Referenced by dt_drawlayer_brush_profile_eval_fast().

◆ inner

float dt_drawlayer_brush_profile_const_t::inner

Normalized radius at which the fall-off starts.

Definition at line 103 of file brush_profile.h.

Referenced by dt_drawlayer_brush_profile_eval_fast().

◆ shape

int dt_drawlayer_brush_profile_const_t::shape

Copy of the dab's shape.

Definition at line 100 of file brush_profile.h.

Referenced by dt_drawlayer_brush_profile_eval_fast(), and dt_drawlayer_brush_profile_prepare().

◆ width

float dt_drawlayer_brush_profile_const_t::width

max(1 - inner, 1e-6), the transition width, kept as a DIVISOR so the division matches the original bit for bit.

Definition at line 104 of file brush_profile.h.

Referenced by dt_drawlayer_brush_profile_eval_fast().


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