Skip to content

Commit

Permalink
Merge pull request #28 from tberghuis/fix-initial-color
Browse files Browse the repository at this point in the history
fix for HsvColorPicker initialColor
  • Loading branch information
skydoves authored Jul 5, 2023
2 parents 6642e52 + 870cd99 commit 6b4469b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public fun HsvColorPicker(
(initialColor.blue * 255).toInt(),
hsv
)
val angle = (Math.PI / 180f) * hsv[0]
val angle = (Math.PI / 180f) * hsv[0] * (-1)
val saturationVector = pickerRadius * hsv[1]
val x = saturationVector * cos(angle) + center.x
val y = saturationVector * sin(angle) + center.y
Expand Down

0 comments on commit 6b4469b

Please sign in to comment.