Skip to content

Commit

Permalink
shorter code
Browse files Browse the repository at this point in the history
  • Loading branch information
BSVogler committed Sep 18, 2019
1 parent a96ba24 commit 3e5597c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moodmeter/Model/Face.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class Face {
var alpha: CGFloat = 0.0
let alphaP = UnsafeMutablePointer<CGFloat>(&alpha)
Face.moodToColor[mood].getHue(hueP, saturation: saturationP, brightness: brightnessP, alpha: alphaP)
return UIColor(hue: hueP.pointee, saturation: saturationP.pointee, brightness: brightnessP.pointee*0.7, alpha: alphaP.pointee)
return UIColor(hue: hue, saturation: saturation, brightness: brightness*0.7, alpha: alpha)
}
return Face.moodToColor[mood]
}
Expand Down

0 comments on commit 3e5597c

Please # to comment.