Skip to content
Commit 27c79029 authored by Bart De Vries's avatar Bart De Vries
Browse files

Fix scaleColor and adjustColor from ColorUtils

Both methods had multiple issues:
- Both methods were reading Color::value() but then reassigning the
  updated value to Color::setHsl() instead of Color::setHsv().  This was
  leading to very different colors than expected.
- Next, adjustColor was applying any passed alpha value as absolute
  value for the new alpha instead of applying it as a delta, which is
  what happens to all the other properties.
- The alpha adjustment for scaleColor is now applied separatly, so it
  also gets applied if rgb deltas are specified, and not only with hsv
  values.
parent 7acd40d5
Pipeline #579550 passed with stage
in 8 minutes and 29 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment