From d1c276a856b99bd7279ba94e23aa2d3d46f9fa85 Mon Sep 17 00:00:00 2001 From: Inhere Date: Sat, 16 Oct 2021 21:20:09 +0800 Subject: [PATCH] style: add some comments --- convert.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/convert.go b/convert.go index 051ca8c..511b749 100644 --- a/convert.go +++ b/convert.go @@ -607,3 +607,13 @@ func C256ToRgbV1(val uint8) (rgb []uint8) { return []uint8{r, g, b} } + +/************************************************************** + * hsl color <=> RGB/True color + ************************************************************ + * refers + * https://stackoverflow.com/questions/2353211/hsl-to-rgb-color-conversion + * https://github.com/less/less.js/blob/master/packages/less/src/less/functions/color.js + * https://github.com/d3/d3-color/blob/v3.0.1/README.md#hsl + */ +