All Projects → cckuailong → colorsys-go

cckuailong / colorsys-go

Licence: other
🎃 colorsys-go is a go package(or lib) for everyone to transform one color system to another. The transformation is among RGB, YIQ, HLS and HSV.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to colorsys-go

ColorHelper
No description or website provided.
Stars: ✭ 34 (-54.67%)
Mutual labels:  rgb, hsv, yiq
colorsys
🎨 Minimalistic color converter for RGB, HSV, HSL, CMYK, HEX and CSS strings
Stars: ✭ 53 (-29.33%)
Mutual labels:  rgb, hsv
rgb-tui
Create and get colors code from the terminal using a nice interface.
Stars: ✭ 57 (-24%)
Mutual labels:  rgb, hsv
pi pico neopixel
Pi Pico library for NeoPixel led-strip written in MicroPython. Works with ws2812b (RGB) and sk6812 (RGBW).
Stars: ✭ 70 (-6.67%)
Mutual labels:  rgb, hsv
vscode-color
Helper with GUI to generate color codes such as CSS color notations.
Stars: ✭ 88 (+17.33%)
Mutual labels:  rgb, hsv
ColorPicker
Customizable Color Picker control for WPF
Stars: ✭ 57 (-24%)
Mutual labels:  rgb, hsv
alpine-dash-hls
A ready-prepared video transcoding pipeline to create DASH/ HLS compatible video files & playlists
Stars: ✭ 43 (-42.67%)
Mutual labels:  hls
streamer
Go Package built around spinning up streaming processes
Stars: ✭ 37 (-50.67%)
Mutual labels:  hls
unet
this is a simple demo for image segmentation.----unet网络进行语义分割的demo,用的数据集是KITTI
Stars: ✭ 89 (+18.67%)
Mutual labels:  rgb
hls-downloader
Download all video files from HLS (HTTP Live Streaming) VoD (Video on Demand) m3u8 playlist for local playback
Stars: ✭ 121 (+61.33%)
Mutual labels:  hls
webcam-stream
Webcam HLS streaming tutorial with raspberry pi
Stars: ✭ 25 (-66.67%)
Mutual labels:  hls
Radium
Synced stream and video playback with VOD capabilities utilizing HLS. Developed for movie nights but has many use cases.
Stars: ✭ 172 (+129.33%)
Mutual labels:  hls
hlswatch
keep track of hls viewer stats
Stars: ✭ 44 (-41.33%)
Mutual labels:  hls
ichiColor
Full features javascript color parser module, perfect work with vue.js; support RGB, HSL, HSV/HSB, HSL255, HSL240, HWB, XYZ, LAB, LUV, LHCab, xyY...
Stars: ✭ 23 (-69.33%)
Mutual labels:  hsv
Alfred-Colors-workflow
hex <=> rgb <=> hsl
Stars: ✭ 28 (-62.67%)
Mutual labels:  rgb
demuxer
A tool for demux ts/mp4/flv by typescript. Support HEVC/AVC/AAC codec
Stars: ✭ 108 (+44%)
Mutual labels:  hls
yiq
Returns white when a color is dark and black when a color is light.
Stars: ✭ 24 (-68%)
Mutual labels:  yiq
shaka-php
🎞 Shaka PHP is a library that uses Shaka Packager for DASH and HLS packaging and encryption, supporting Common Encryption for Widevine and other DRM Systems.
Stars: ✭ 63 (-16%)
Mutual labels:  hls
mock-hls-server
Fake a live/event HLS stream from a VOD one. Useful for testing. Supports looping.
Stars: ✭ 61 (-18.67%)
Mutual labels:  hls
khroma
A collection of functions for manipulating CSS colors, inspired by SASS.
Stars: ✭ 28 (-62.67%)
Mutual labels:  rgb

colorsys-go

Build Status

What is colorsys-go

colorsys-go is a go package(or lib) for everyone to transform one color system to another. The transformation is among RGB, YIQ, HLS and HSV.

The repertory MosaicImage has use the package correctly.

Install

go get github.com/cckuailong/colorsys-go

Import

import "github.com/cckuailong/colorsys-go"

How to use it

Parameter Range

All inputs and outputs are three floats in the range [0.0...1.0] (with the exception of I and Q, which covers a slightly larger range also with the exception of R, G and B, which range from 0 to 255 also with the exception of H, which range from 0 to 360).

range of each parameter
R, G, B :    0 ~ 255
I, Q :      -1 ~ 1.X
H :          0 ~ 360
Y, S, V, L : 0 ~ 1

Examples

  1. RGB to YIQ
y, i, q := colorsys.Rgb2Yiq(r, g, b)
  1. YIQ to RGB
r, g, b := colorsys.Yiq2Rgb(y, i, q)
  1. RGB to HLS
h, l, s := colorsys.Rgb2Hls(r, g, b)
  1. HLS to RGB
r, g, b := colorsys.Hls2Rgb(h, l, s)
  1. RGB to HSV
h, s, v := colorsys.Rgb2Hsv(r, g, b)
  1. HSV to RGB
r, g, b := colorsys.Hsv2Rgb(h, s, v)
  1. Yiq to Hls
h, l, s := colorsys.Yiq2Hls(y, i, q)
  1. YIQ to HSV
h, s, v := colorsys.Yiq2Hsv(y, i, q)
  1. HLS to YIQ
y, i, q := colorsys.Hls2Yiq(h, l, s)
  1. HLS to HSV
h, s, v := colorsys.Hls2Hsv(h, l, s)
  1. HSV to YIQ
y, i, q := colorsys.Hsv2Yiq(h, s, v)
  1. HSV to HLS
h, l, s := colorsys.Hsv2Hls(h, s, v)

Contact

Any questions, welcome to email me at [email protected]

My Blog is lovebear.top

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].