Skip to content

Commit

Permalink
use 0 instead of 360
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Wreggelsworth committed May 6, 2017
1 parent a8e3d48 commit 2a109d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Color+HSB.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ func hsb(from rgb: RGBTuple) -> HSBTuple {
hue /= 6
}

hue = hue == 1.0 ? 0 : hue

return HSBTuple(hue: hue, saturation: saturation, brightness: brightness)
}

Expand Down

0 comments on commit 2a109d5

Please sign in to comment.