Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

写的真不错 #3

Open
angxuejian opened this issue Nov 17, 2020 · 1 comment
Open

写的真不错 #3

angxuejian opened this issue Nov 17, 2020 · 1 comment

Comments

@angxuejian
Copy link

最近也想做个颜色选择器。不知从何下手。通过微信社区找到此篇。

窥其源码思路后,越发觉得写的真好。特来感谢。

其中有一惑,希望能解答。

为什么选择颜色 hsv.s,hsv.v 选择框要用一个灰色背景图 + 背景颜色来做?(看到几个网站的做法如出一辙,实在是不明白)

@MakerGYT
Copy link
Owner

灰色背景图 + 背景颜色叠加起来可以指示颜色空间,其中水平方向表示饱和度,饱和度表示颜色接近光谱色的程度。饱和度越高,说明颜色越深,越接近光谱色饱和度越低,说明颜色越浅,越接近白色。竖直方向表示明度,决定颜色空间中颜色的明暗程度,明度越高,表示颜色越明亮。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants