But there’s a trick [to invert black and white while preserving colors]: do a regular invert and then rotate the hue halfway through. Through the magic of math, this is the same as inverting just L in the HSL space, which means the colors are preserved.
…and, more importantly, [this is] available in CSS as a filter: instead of
invert(1), usehue-rotate(180deg) invert(1).
Day for Night
同分类推荐文章
- QWERTY 键盘布局的发展历史 (2026-11-14 02:40:02)
- A Practical Guide To Naming Things (2026-10-19 19:40:47)
- 比起折痕, iPhone Duo 的交互设计更加令人着迷 (2026-10-29 17:10:42)
建议继续学习
- 十个最容易犯的用户体验错误及规避方案 (累计阅读 79,843)
- 50个活力和动感的网页设计-颜色的灵感 (累计阅读 34,822)
- 流程管理与用户研究 (累计阅读 17,360)
- 30套最好的网站开发与设计中使用的小型图标 (累计阅读 12,823)
- sns视觉设计分享 (累计阅读 9,942)
- 网站导航设计的6大分类 (累计阅读 9,820)
- 精于图片处理的10款jQuery插件 (累计阅读 7,650)
- 给想转行做产品经理的同学 (累计阅读 7,212)
- 概念视觉设计 (累计阅读 6,206)
- 2011年手机产品设计趋势(1):精致实用的界面 (累计阅读 6,067)