Skip to content

Commit

Permalink
fix for HsvColorPicker initialColor
Browse files Browse the repository at this point in the history
  • Loading branch information
tberghuis committed Jul 3, 2023
1 parent 2a1b152 commit 870cd99
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,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 870cd99

Please sign in to comment.