我想要一个用于CMYK颜色而不是RGB的jQuery颜色选择器,这是常态。这甚至可能吗?
除了RGB的
之外,我找不到任何其他地方答案 0 :(得分:0)
此colorpicker有HSB。据我所知,转换并不准确。这就是为什么在准备打印除了在CMYK工作之外你还做了测试打印。在DTP代理商中,他们甚至使用特殊工具校准显示器,使其更接近CMYK最终颜色。
答案 1 :(得分:0)
在Codes-sources.com上找到此信息。它不是一个颜色选择器而是转换器.. 这是delphi,但你可以适应,对吗? :)
答案 2 :(得分:0)
我使用这个:http://vanderlee.github.com/colorpicker/。您可以定义所选颜色的返回方式(RGB,CMYK,HSV,...)
简单用法:
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js"></script>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/ui-lightness/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="colorpicker/jquery.colorpicker.js"></script>
<link type="text/css" rel="stylesheet" href="colorpicker/jquery.colorpicker.css"></link>
</head>
<body>
<input type="text" class="cp-full" value="" style="width:350px" />
<script>
$(function() {
$('.cp-full').colorpicker({
parts: 'full',
showOn: 'both',
buttonColorize: true,
showNoneButton: true,
alpha: true,
colorFormat: 'RGBA'
});
});
</script>
希望有所帮助