Giter Site home page Giter Site logo

colors's Introduction

Color properties and translations

This is a repository containing color properties and translations for general purpose.

Usage

This is how a color entry looks like:

{
    "name": "red",
    "html": "Red",
    "hex": "#FF0000",
    "translations": {
        "de": "rot",
        "en": "red",
        "es": "rojo",
        "fr": "rouge",
        "pl": "czerwony"
    },
    "red": 255,
    "green": 0,
    "blue": 0,
    "hue": 0,
    "saturation": 1,
    "value": 1,
    "lightness": 0.5,
    "black": 0,
    "cyan": 0,
    "magenta": 1,
    "yellow": 1
}

RGB values

  • red: 0 … 255
  • green: 0 … 255
  • blue: 0 … 255

HSL values

  • hue: degrees, 0 … 360
  • saturation: 0 … 1
  • lightness: 0 … 1

HSV values

  • value: 0 … 1

CMYK values

  • black: 0 … 1
  • cyan: 0 … 1
  • magenta: 0 … 1
  • yellow: 0 … 1

Build resources

You can build all resources by yourself, but they are all checked in, too.

Use the PHP scripts in the build directory:

  • build_cmyk.php calculates CMYK values for the colors.json
  • build_hsl.php calculates HSL values for the colors.json
  • build_rgb.php calculates RGB values for the colors.json
  • build_xliff.php builds XLIFF translation files by all existing translation keys

colors's People

Contributors

ksm2 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.