Skip to content

Commit

Permalink
docs(readme): update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hisamafahri committed Feb 8, 2022
1 parent 554a6a0 commit 02c9c45
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# COCO (Color Converter) for Go

COCO (Color Converter) is a color conversion library for Go. Heavily inspired by NPM's [color-convert](https://www.npmjs.com/package/color-convert). It converts all ways between `rgb`, `hsl`, `hsv`, `hwb`, `cmyk`, and `hex` strings.
COCO (Color Converter) is a color conversion library for Go. Heavily inspired by NPM's [color-convert](https://www.npmjs.com/package/color-convert). It converts all ways between `rgb`, `hsl`, `hsv`, `hwb`, `cmyk`, `hex` strings, etc.

## Install

Expand Down Expand Up @@ -38,7 +38,7 @@ coco.Rgb2Hwb(140, 200, 100) // Output [3]float64: [96 39 22]
coco.Rgb2Lab(140, 200, 100) // Output [3]float64: [75 -37 44]

// RGB to XYZ
coco.Rgb2Hwb(140, 200, 100) // Output [3]float64: [34 48 20]
coco.Rgb2Xyz(140, 200, 100) // Output [3]float64: [34 48 20]

// RGB to HEX
coco.Rgb2Hex(140, 200, 100) // Output string: 8CC864
Expand All @@ -50,7 +50,7 @@ coco.Rgb2Hcg(140, 200, 100) // Output [3]float64: [96 39 65]
coco.Rgb2Apple(140, 200, 100) // Output [3]float64: [29041 54998 7710]

// RGB to Gray
coco.Rgb2Apple(140, 200, 100) // Output [1]float64: [58]
coco.Rgb2Gray(140, 200, 100) // Output [1]float64: [58]

```

Expand All @@ -71,7 +71,7 @@ coco.Hsl2Rgb(136, 54, 43) // Output [3]float64: [50 169 82]
coco.Hsl2Hsv(136, 54, 43) // Output [3]float64: [136 70 66]

// HSL to HCG
coco.Hsl2Hsv(136, 54, 43) // Output [3]float64: [136 46 37]
coco.Hsl2Hcg(136, 54, 43) // Output [3]float64: [136 46 37]

```

Expand Down Expand Up @@ -176,7 +176,7 @@ import (
)

// LCH to LAB
coco.Lab2Xyz(30, 79, 50) // Output [3]float64: [30 51 61]
coco.Lch2Lab(30, 79, 50) // Output [3]float64: [30 51 61]

```

Expand Down

0 comments on commit 02c9c45

Please sign in to comment.