Following is method from a library in my project
public convenience init(hueRotate: Double) { let c = cos(hueRotate) let s = sin(hueRotate) let m