十六进制颜色 - 如何计算从1颜色到另一个 [英] Hex Colors - How to Calculate from 1 Color to Another
问题描述
我的工作.LESS和我正在寻找一个方法如何计算从十六进制颜色到另一个。
例如:我有#000000,然后我做一些计算(减轻,变暗,或混合...)不知何故终于会变成#657177。
I work on .LESS and I am looking for a method how calculate from a hex color to another. For example: I have #000000, then I do some calculations (lighten, or darken, or mix...) somehow finally it will become #657177.
让我们说:
@ header-background:#000000;
@tags:lighten(@ header-background,30%);
Let's say: @header-background: #000000; @tags: lighten(@header-background, 30%);
我尝试过很多百分比数字,但是我无法从#000000到#657177。
I have tried many percentage numbers, but I couldn't get exactly from #000000 to #657177.
请给个手。
谢谢!
Please give a hand. Thanks!
推荐答案
尝试使用 http://www.w3schools.com/colors/colors_picker.asp ,因为你知道你正在寻找什么颜色,它可以给你的百分比差异。
Try using http://www.w3schools.com/colors/colors_picker.asp since you know what color you are looking for, and it can give you the percentage difference.
这篇关于十六进制颜色 - 如何计算从1颜色到另一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!