Day for Night

neverland 2026-06-03 09:03:24 累计浏览 472 次

Marcin Wichary:

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), use hue-rotate(180deg) invert(1).

同分类推荐文章

  1. QWERTY 键盘布局的发展历史 (2026-11-14 02:40:02)
  2. A Practical Guide To Naming Things (2026-10-19 19:40:47)
  3. 比起折痕, iPhone Duo 的交互设计更加令人着迷 (2026-10-29 17:10:42)

查看更多 设计 文章 →

建议继续学习

  1. 十个最容易犯的用户体验错误及规避方案 (累计阅读 79,843)
  2. 50个活力和动感的网页设计-颜色的灵感 (累计阅读 34,822)
  3. 流程管理与用户研究 (累计阅读 17,360)
  4. 30套最好的网站开发与设计中使用的小型图标 (累计阅读 12,823)
  5. sns视觉设计分享 (累计阅读 9,942)
  6. 网站导航设计的6大分类 (累计阅读 9,820)
  7. 精于图片处理的10款jQuery插件 (累计阅读 7,650)
  8. 给想转行做产品经理的同学 (累计阅读 7,212)
  9. 概念视觉设计 (累计阅读 6,206)
  10. 2011年手机产品设计趋势(1):精致实用的界面 (累计阅读 6,067)