2009-07-30 78 views
0

我想有一个CMYK颜色的jQuery颜色选择器,而不是常规的RGB。这甚至有可能做到吗?是否有可能拥有CMYK颜色选择器?

我再也找不到比RGB的

+1

我什么都不知道关于打印,但CMYK甚至在电脑屏幕上有意义吗? http://en.wikipedia.org/wiki/CMYK_color_model#Conversion – albertb 2009-07-30 08:35:32

+1

这只是表示颜色的一种方式,所以是的,它是有意义的。就好像它们是3D或4D空间中的坐标一样。 – 2009-07-30 08:55:39

回答

0

colorpicker多趴趴走其他具有HSB。从我所知道的转换不是确切的。这就是为什么除了在CMYK工作之外还要准备印刷品时,你必须做测试印刷。在DTP机构中,他们甚至使用专用工具校准显示器以更接近CMYK最终颜色。

0

Codes-sources.com上找到它。这不是一个colorpicker,但转换器.. 这是德尔福,但你可以适应,对吧? :)

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> 

希望帮助

相关问题