Skip to content

Commit d1c276a

Browse files
committed
style: add some comments
1 parent 254c63f commit d1c276a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

convert.go

+10
Original file line numberDiff line numberDiff line change
@@ -607,3 +607,13 @@ func C256ToRgbV1(val uint8) (rgb []uint8) {
607607

608608
return []uint8{r, g, b}
609609
}
610+
611+
/**************************************************************
612+
* hsl color <=> RGB/True color
613+
************************************************************
614+
* refers
615+
* https://stackoverflow.com/questions/2353211/hsl-to-rgb-color-conversion
616+
* https://github.com/less/less.js/blob/master/packages/less/src/less/functions/color.js
617+
* https://github.com/d3/d3-color/blob/v3.0.1/README.md#hsl
618+
*/
619+

0 commit comments

Comments
 (0)