commit | 879a08ac146acb2518363cc9d2d8aa6dce04528d | [log] [tgz] |
---|---|---|
author | Mike Klein <mtklein@chromium.org> | Mon May 01 15:34:01 2017 -0400 |
committer | Mike Klein <mtklein@chromium.org> | Mon May 01 20:59:45 2017 +0000 |
tree | 5c0c0370b00db7c26d12d4d89596f838cfc090c2 | |
parent | 6ab223e0f0203225c9cf019b56561489027e4b0d [diff] |
refactor hsl_to_rgb a touch This rewrites the existing logic to expose more of the symmetries, and especially to make them clearly identical subexpressions. I think it's clear that the intent in hue_to_rgb is to wrap the t value back into 0-1... that's t = fract(t). No GM diffs. Change-Id: I9d62d8f80bcb45711ee334f953d3f6410e068ce4 Reviewed-on: https://skia-review.googlesource.com/14940 Reviewed-by: Herb Derby <herb@google.com>