add abr color dynamics

This commit is contained in:
2019-03-07 00:53:45 +01:00
parent 3296de98cc
commit 5329147d58
14 changed files with 78 additions and 31 deletions

View File

@@ -225,6 +225,15 @@ std::vector<std::shared_ptr<Brush>> ABR::compute_brushes(const std::string& path
}
// Color Dynamics
if (p->value<Boolean>("useColorDynamics"))
{
b->m_jitter_sat = p->value<UnitFloat>("Strt") * 0.01f;
b->m_jitter_hue = p->value<UnitFloat>("H ") * 0.01f;
b->m_jitter_val = p->value<UnitFloat>("Brgh") * 0.01f;
b->m_jitter_hsv_eachsample = p->value<Boolean>("colorDynamicsPerTip");
}
std::vector<std::string> modes = {
"normal", // normal (not in Photoshop)
"Mltp", // multiply