Skip to content

Commit

Permalink
Fixed an issue with Split complementary colors (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-Peyronnet committed Nov 1, 2023
1 parent 4d8d2e1 commit d902e1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ColorPicker/Classes/Global.cs
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ public static Color[] GenerateSplitComplementaryColors(Color baseColor)
float complementaryAngle = (h + 0.5f) % 1.0f;

// Calculate the angles to the split complementary colors
float angle1 = (complementaryAngle + 1.0f / 6.0f) % 1.0f;
float angle2 = (complementaryAngle + 5.0f / 6.0f) % 1.0f;
float angle1 = (complementaryAngle + 1.0f / 12.0f) % 1.0f;
float angle2 = (complementaryAngle + 11.0f / 12.0f) % 1.0f;

// Generate the split-complementary colors
splitComplementaryColors[0] = HSLToColor(angle1, s, l);
Expand Down

0 comments on commit d902e1c

Please sign in to comment.