Qix-/color

Docs don't give examples of all supported constructor arguments

Open

#181 opened on 2020年5月6日

GitHub で見る
 (1 comment) (2 reactions) (0 assignees)JavaScript (316 forks)batch import
documentationhelp wantedpr welcome

Repository metrics

Stars
 (4,637 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

The docs give examples of various forms of Color.rgb() with 3 arguments, but never give an example of specifying an alpha value in the constructor. They do give the example Color('#7743CE').alpha(0.5) but nothing like Color.rgb([0x77, 0x43, 0xCE, 0.5]).

Also, there are no examples of construction from non-RGB color spaces. Color.hsl(200,80,70) works but is never mentioned.

コントリビューターガイド