Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to visualize UIColor, CIColor, and CGColorRef. #104

Conversation

ZevEisenberg
Copy link

Looks like this:

screen shot 2015-08-04 at 9 57 14 am

We could add more fancy visualization, including rendering text of what the constituent colors are, like Apple does, but I figured it would be a good idea to start simple.

Fixes #103

if isCFColor:
return 1
else:
return 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason for using 0/1 instead of False/True?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copied the pattern from elsewhere in the script. Happy to change it.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cone to think of it, the != 0 is already returning a boolean. We can just return that.

@kastiglione
Copy link
Contributor

Looks good, thank you!

@ZevEisenberg
Copy link
Author

@kastiglione updated return statements

kastiglione added a commit that referenced this pull request Aug 10, 2015
…sualize-colors

Add ability to visualize UIColor, CIColor, and CGColorRef.
@kastiglione kastiglione merged commit 4f2f560 into facebook:master Aug 10, 2015
@kastiglione
Copy link
Contributor

@ZevEisenberg Thank you! If you have any other ideas, would love to get more pull requests or issues as well.

@ZevEisenberg ZevEisenberg deleted the feature/zeveisenberg/103-visualize-colors branch August 30, 2016 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants