I have an iOS SKColor, that I want to convert to a lighter shade (that is opaque with no opacity/no transparency), therefore I would like to implement a function using the H
As the official SKColor doc says, on iOS, a SKColor is just a UIColor. Hence:
UIColor *uicolor = (UIColor *)skcolor;
CGFloat h, s, b, a; // lightness is called 'brightness'
[uicolor getHue:&h saturation:&s brightness:&b alpha:&a];
// (play with your brightness value here)
SKColor *skcolor2 = (SKColor *)[UIColor colorWithHue:h saturation:s brightness:b alpha:a];