Skip to content

Commit

Permalink
Prevent colour wraparound
Browse files Browse the repository at this point in the history
  • Loading branch information
shawna-p committed Feb 5, 2024
1 parent 8f7feef commit 1bb4cc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion color_picker.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ init python:
"""
Set the hue rotation of the colour picker.
"""
value = value % 1.0
if value > 1.0:
value = value % 1.0
if round(self._hue_rotation*255.0) == round(value*255):
return
self._hue_rotation = value
Expand Down

0 comments on commit 1bb4cc0

Please sign in to comment.