Giter Club home page Giter Club logo

ui-color's Introduction

UIColor.io Build Status

Getting Started

First, run the development server:

yarn start

Open http://localhost:8000 with your browser to see the result.

You can start editing the page by modifying src/pages/index.js. The page auto-updates as you edit the file.

Learning Gatsby

Looking for more guidance? Full documentation for Gatsby lives on the website. Here are some places to start:

  • For most developers, we recommend starting with our in-depth tutorial for creating a site with Gatsby. It starts with zero assumptions about your level of ability and walks through every step of the process.

  • To dive straight into code samples, head to our documentation. In particular, check out the Guides, API Reference, and Advanced Tutorials sections in the sidebar.

ui-color's People

Contributors

ekonstantinidis avatar kspearrin avatar manosim avatar quanganhdo 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

ui-color's Issues

Allow easier reverse engineering

Sometimes, I only have the UIColor and want to get the hex-value so it would be good to allow input like UIColor(red:0.07, green:0.20, blue:0.34, alpha:1.0).

Change to formatting - [Suggestion]

Happy to open a pull request but how would you feel about updating the formatting?

UIColor(red:0.94, green:0.18, blue:0.17, alpha:1.0)

to include a space after the ':'

UIColor(red: 0.94, green: 0.18, blue: 0.17, alpha: 1.0)

NSColor support?

Would be neat to show NSColor values, for those of us who write for macOS :) Currently it's already useful by doing the math automatically. Thanks!

Increased precision

Hi!
First off, thanks for your excellent work of providing this tool. It was one of the first hits when searching using google. The UI looks nice too.

I found that using just two digits for the decimal part will loose precision during conversion. RGB is 256 levels (0-255) and two digit precision will only allow 100 levels (00-99), loosing about half of the precision. Picky QA will notice this when using color picker tool.

I don't know if you still maintain this page or not, but a simple solution would be either to just increase precision to 3 digits or allow for changing the precision in the UI.
I tested the latter approach, providing an additional input field for setting the precision. I made a simple deploy using github pages at https://ui-color.klaesson.net if you want to try it out. I defaulted to 4 digits (but can be set to whatever, 3 will probably be sufficient). I could probably create a PR too if you want.

2 significant figures doesn't seem adequate

#010101 encodes to UIColor(red: 0.00, blue: 0.00, green: 0.00), which proves precision is lost.

Assuming Apple uses 32 bit color underneath it all, we've thus lost information.

Use `colorWithRed:145.0/255.0` rather than `colorWithRed:0.57`

Love the site.

My one suggestion would be that the Cocoa standard seems to usually be /255 fractions:

[UIColor colorWithRed:145.0/255.0 green:76.0/255.0 blue:76.0/255.0 alpha:1];

Rather than uicolor.io's decimal output:

[UIColor colorWithRed:0.57 green:0.30 blue:0.30 alpha:1.0];

Although more verbose, the former allows for easy human parsing of the RGB colors from the UIColor code.

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.