Skip to content

notnew/color-convert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Color Convert

A program to convert colors between different formats (hexadecimal, rgb, hsl). Inspired by http://rem.im/rgb2hex.html, written in [elm] (http://elm-lang.org)

Usage

Convert between hexadecimal, rgb and hsl formats by filling out the appropriate field. The rgb and hsl fields are displayed like the function calls in elm required to make the input color.

Fields are lenient in the input they accept, all these are accepted as the same color:

  • 150 180 255
  • 150, 180 255
  • rgb(150,180,255)
  • rgb( 150,180 , 255)
  • 150 180 3000

Hitting the enter key will reprint all the fields in a standard format (useful for displaying elm function calls that can be copied and pasted into code).

The hsl field takes a hue given in radians, and saturation and lightness given as a fraction between 0 and 1.

Releases

No releases published

Packages

No packages published

Languages