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

aligenie_demo无法同时调颜色和亮度 (IDFGH-6286) #7953

Closed
zsjlovestudy opened this issue Nov 23, 2021 · 3 comments
Closed

aligenie_demo无法同时调颜色和亮度 (IDFGH-6286) #7953

zsjlovestudy opened this issue Nov 23, 2021 · 3 comments
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Feature Request Feature request for IDF

Comments

@zsjlovestudy
Copy link

用天猫精灵APP控制这个设备的时候,先在固定亮度不变时,再改变颜色颜色都是正确的;亮度不变的时候,去调完颜色,再去调大亮度,灯的颜色就不是对应的颜色了。但是调小了以后颜色又是正确的了。

@zsjlovestudy zsjlovestudy added the Type: Feature Request Feature request for IDF label Nov 23, 2021
@espressif-bot espressif-bot added the Status: Opened Issue is new label Nov 23, 2021
@github-actions github-actions bot changed the title aligenie_demo无法同时调颜色和亮度 aligenie_demo无法同时调颜色和亮度 (IDFGH-6286) Nov 23, 2021
@InfiniteYuan
Copy link
Collaborator

@zsjlovestudy 这是因为 天猫精灵这里用的是 HSL 色彩空间,当改变亮度的时候,实际修改是的 HSL 中的 L 分量,可以查看 HSL 色彩空间,当 L 为 100 时,颜色为白色。

如果这种不适合你的应用,你可以自定义修改。

image

image

@zsjlovestudy
Copy link
Author

@zsjlovestudy 这是因为 天猫精灵这里用的是 HSL 色彩空间,当改变亮度的时候,实际修改是的 HSL 中的 L 分量,可以查看 HSL 色彩空间,当 L 为 100 时,颜色为白色。

如果这种不适合你的应用,你可以自定义修改。

image

image

大佬,能给点思路吗,我暂时没什么思路。
1.当亮度不变时,去改变颜色,亮度不能改变。
2.当颜色不变时,去调大亮度,不会变成白色。

@InfiniteYuan
Copy link
Collaborator

InfiniteYuan commented Nov 25, 2021

可以试试 单独调亮度时 限制 HSL 中的 L 分量 最大为 50。

具体要你根据色彩空间自己调的。colorizer

@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: Opened Issue is new labels Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Feature Request Feature request for IDF
Projects
None yet
Development

No branches or pull requests

4 participants