Giter Site home page Giter Site logo

colortheory's People

Contributors

dependabot[bot] avatar webinista avatar

Stargazers

 avatar

Watchers

 avatar

colortheory's Issues

Add some webkit-specific styles for the color input

  • input[type="color" i]::-webkit-color-swatch

    • padding: 0;
    • margin: -4px -2px;
  • input[type="color" i]::-webkit-color-swatch. Remove the border

For Mozilla

  • input[type="color"]:-moz-system-metric(color-picker-available)

Triad function / feature

Blocks #43.

Similar to #25.

  • Convert input to HSL colors
  • Create palette of 3 colors, original, and two values that are +120 and -120 degrees from it.

Improve input for text field

Currently if it's a valid short hex value, it will expand to a long hex value. Should keep the short value, but update the input[type=color] field to use the long value.

Easiest way is probably to pass the value back to the component as is, and move the expandRGB function to the color input component.

Create conversion functions

A short list of color conversions to make and do.

  • HSL to hex

  • Hex to RGB

  • RGB to hex

  • [ ] Lab to Hex moved to #29

Really need to do conversions to hex in order to be able to set the input[type=color] value

Split complementary function

Should return a 3 color array.

  • Find the color's complement - comp1
  • Find the split complement on either side, e.g.: comp1 + 30 and comp1-30

Related to #26. Blocks #43

Create Diad color scheme / feature

A diadic color scheme is one using two colors that are two colors apart on the color wheel

For example, red and orange or blue and violet (skipping indigo)

Related half of a tetradic color scheme. (#44)

source

Blocks #43

Double check rgbToHsl conversion

Conversion returns correct hue, but saturation for some colors doesn't quite match other color pickers. But those other color pickers don't match each other.

Example rgb(138, 140, 115) was converted to hsl(65, 5%, 50%) instead of hsl(65, 10%, 50%). Should be closer to 10.

Hard to test outcomes if the conversions are off.

Colors this occurs with:

  • #94fffa / rgb(148, 255, 250);

Seems to happen with the conversion from rgb to hsl.

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.