colorconverter

package module
v0.0.0-...-c613b07 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 3 Imported by: 11

README

ColorConverter.go

Build Status GoDoc License MIT Coverage Status

Convert between RGB, HSL, HSV, CMYK and HEX color defining with these GO functions under MIT-License
translated from https://github.com/SimonWaldherr/ColorConverter.js

about

License: MIT
Version: 0.0.6
Date: 10.2014

download

  • go get github.com/SimonWaldherr/ColorConverterGo
  • git: git@github.com:SimonWaldherr/ColorConverter.go.git
  • zip from GitHub

matrix

. RGB HSL HSV YUV Hex CMYK
RGB X . X X X
HSL X . . . X
HSV X . . . X
YUV . . . . .
Hex X . . . X
CMYK X . . . .

contact

Feel free to contact me via eMail or on Twitter. This software will be continually developed. Suggestions and tips are always welcome.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CMYK2RGB

func CMYK2RGB(c int, m int, y int, k int) (int, int, int)

func HEX2CMYK

func HEX2CMYK(hex string) (int, int, int, int)

func HEX2RGB

func HEX2RGB(hex string) (int, int, int)

func HSL2CMYK

func HSL2CMYK(h, s, l int) (int, int, int, int)

func HSL2RGB

func HSL2RGB(h, s, l int) (int, int, int)

func HSV2CMYK

func HSV2CMYK(h, s, v int) (int, int, int, int)

func HSV2RGB

func HSV2RGB(h, s, v int) (int, int, int)

func RGB2CMYK

func RGB2CMYK(r, g, b int) (int, int, int, int)

func RGB2HEX

func RGB2HEX(r, g, b int) string

func RGB2HSL

func RGB2HSL(r, g, b int) (int, int, int)

func RGB2YUV

func RGB2YUV(r, g, b int) (int, int, int)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL