Skip to content

Strange results in Xcode 9.2 #26

@pearlpdx

Description

@pearlpdx

I have loaded the example into Xcode 9.2.
Tried both swift 3.2 and swift 4.
It compiles and runs with only three minor warning, the warning involve the pi constant and the program runs the same either way.
// hue = acos(dx/d) / CGFloat(M_PI) / 2.0
hue = acos(dx/d) / CGFloat.pi / 2.0
There were no other changes to the example.

Problem:
If the wheel is placed where you would expect only Blue "Select color" returns:
UIExtendedSRGBColorSpace 0.214549 0.269541 1 1

If placed the wheel on the complement (amber) the results are:
UIExtendedSRGBColorSpace 1 0.844251 -0.206295 1
NOTE: unexpected Minus Value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions