Giter Site home page Giter Site logo

jathu / sweetercolor Goto Github PK

View Code? Open in Web Editor NEW
149.0 149.0 16.0 4.62 MB

A color extension for Swift with Photoshop blending.

Home Page: http://jathu.me/sweetercolor

License: MIT License

Swift 97.03% Objective-C 1.37% Ruby 1.60%
ios photoshop uicolor

sweetercolor's People

Contributors

jathu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

sweetercolor's Issues

SweeterColor darker than actual color

The color from SweeterColor doesn't match the hex color. Here's a screenshot comparing the colors using #EB6E2F set with XCode's storyboard, Inkscape, and SweeterColor:

sweet

NB: The screenshot colors are more vibrant than they actually are due to GitHub's image compression

To reproduce:

  1. Create one UIView in Storyboard, set its color to #EB6E2F
  2. Create another UIView in code set the background color. eg sweeterColorView.backgroundColor = UIColor(hex: "#EB6E2F")
  3. Open Adobe PS or Inkscape, set the canvas color to #EB6E2F
  4. Use the macOS Digital Color Meter again, the color from XCode and Adobe PS is correct, but SweeterColor has the wrong color

Better default colors

Instead of using the (ugly) default colors from UIColor, use more vibrant default colors.

Swift version (3) no longer supported in XCode

I tried installing this pod but I get the following error in XCode:

SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0.

Could you please add support for the newer Swift versions?

Rounding Error

Due to rounding errors for the hue increment/decrement, most of the harmony tests fail and equal color tests fail.

Extension on `UIColor`

This is not really an issue, but thought this would be the place to have a discussion.

Why not build all of this as an extension of UIColor? It seems like most of the methods you've written start by fetching the color property and then accessing information from that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.