<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="cs"><head><!-- saved from url=(0027)http://www.sinid.com/color/ --><title>网页配色 Mm2i.com bbs.mm2i.com</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<meta content="提供网站建设网站推广相结合的建站方案,一流的网站建设专家,全程的网站建设服务...临沂网站推广网站设计制作。网站建设网站建设网有多年的企业网站制作的经验,网站建设,网页制作,网站建设公司,企业网站建设,网站报价,网站维护,网络维护,企业网站建设,网站建设服务,网站制作服务,临沂网络公司" name="keywords">
<meta name="Description" content="临沂,兰山区,临沂网络公司,网站建设,网页制作,flash动画制作,网站推广">
<meta name="Description" content="联系电话:13355030700">
<meta name="Description" content="联系人:郑汉启">
<meta name="Description" content="临沂,兰山区,临沂网络公司,网站建设,网页制作,flash动画制作,网站推广">
<meta name="keywords" content="域名注册,虚拟主机,万网域名注册,万网虚拟主机,域名注册提供商,虚拟主机提供商,域名服务商,主机提供商,电子商务,网站建设,域名,网站推广,主机,空间租用,域名查询,服务器托管,国际域名,服务器租用,主机租用,企业上网,域名申请,网络实名,通用网址,domain name,domain names,domainname,domain name registration,whois,web address,gTLD,ccTLD,.com,.net,.org,.biz,.info,.us,.cc,.tv,.cn,register,registrar,registry,registration,internet address,ICANN,NSI, netsol,Network Solutions,verisign,internic,cnnic,Hichina,Eachnic,web hosting,hosting,web site hosting,web hoster,shared hosting,web page hosting,ecommerce hosting,ecommerce web hosting,ecommerce hosting,shopping cart,database hosting,reseller,reseller hosting,Unix web hosting,Windows web hosting,Unix hosting,Windows hosting,Linux web hosting,Linux hosting,MS SQL hosting,MS SQL web hosting,SQL hosting,SQL web hosting,MySQL hosting,ASP web hosting,ASP hosting,FrontPage extensions,FrontPage hosting,dedicated server,dedicated hosting,China hosting,website,web site,web site tools,web extensions,web forwarding,vhost,e-mail,email,SSL,webserver certificates,e-commerce,ecommerce,search engine promotion,digital certificates">
<meta name="description" content="中国万网是中国域名注册和虚拟主机服务提供商,an ICANN accredited registrar,is dedicated to providing resellers with the world's best wholesale prices,service and support for domain name registration and related value added services,Web Hosting offers website hosting,e-commerce hosting solutions and domain name registrations">
<link href="peise_files/styl.css" type="text/css" rel="stylesheet">
<script src="peise_files/colorblind.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
function objGet(x) {
if (typeof x != 'string') return x;
else if (Boolean(document.getElementById)) return document.getElementById(x);
else if (Boolean(document.all)) return eval('document.all.'+x);
else return null;
}
function objSetStyle (obj,prop,val) {
var o = objGet(obj);
if (o && o.style) {
eval ('o.style.'+prop+'="'+val+'"');
return true;
}
else return false;
}
function objDisplay (obj,on,type) {
if (on && !type) type = 'block';
return objSetStyle(obj,'display',(on) ? type:'none');
}
function dec2hex(n) {
var s = n.toString(16);
if (s.length<2) s = '0'+s;
return s.toUpperCase();
}
function hex2dec(n) {
return parseInt(n,16);
}
function col2Gray(r,g,b) {
var lum = Math.round( r*0.299 + g*0.587 + b*0.114 );
return dec2hex(lum)+dec2hex(lum)+dec2hex(lum);
}
// Color object
function Color(R,G,B,H) {
this.setRGB(R,G,B,H);
}
Color.prototype.copy = function (c) {
this.R = c.R; this.G = c.G; this.B = c.B;
this.H = c.H; this.S = c.S; this.V = c.V;
this.countMinMax();
}
Color.prototype.setRGB = function (R,G,B,H) {
this.R = R;
this.G = G;
this.B = B;
this.checkRange();
this.countMinMax();
if (H>-1) {
this.H = H;
this.S = (this.max) ? (this.max-this.min)/this.max : 0;
this.V = this.max/255;
this.baseR = R; this.baseG = G; this.baseB = B;
}
else if (R==G && G==B) {
this.H = 0;
this.S = 0;
this.V = this.max/255;
this.baseR = R; this.baseG = G; this.baseB = B;
}
else this.countHSVByRGB();
}
Color.prototype.setHex = function (hex) {
this.setRGB ( hex2dec(hex.substr(0,2)), hex2dec(hex.substr(2,2)), hex2dec(hex.substr(4,2)) )
}
Color.prototype.getHex = function(webColors,CBMode) {
var r,g,b;
if (webColors) {
r = Math.round(this.R/51) * 51;
g = Math.round(this.G/51) * 51;
b = Math.round(this.B/51) * 51;
}
else {
r = this.R; g = this.G; b = this.B;
}
if (CBMode) {
if (CBMode==7) return col2Gray(r,g,b);
else return getColorBlindColor(r,g,b,CBMode);
}
else return dec2hex(r)+dec2hex(g)+dec2hex(b);
}
Color.prototype.setHSV = function (h,s,v) {
this.H = h;
this.S = s;
this.V = v;
if (this.S>1 || this.S<0) this.S = (this.S<0) ? 0:1;
if (this.V>1 || this.V<0) this.V = (this.V<0) ? 0:1;
this.countRGBByHSV();
}
Color.prototype.checkRange = function () {
if (this.R>255) this.R = 255;
if (this.G>255) this.G = 255;
if (this.B>255) this.B = 255;
}
Color.prototype.countMinMax = function() {
this.max = Math.max(Math.max(this.R,this.G),this.B);
this.min = Math.min(Math.min(this.R,this.G),this.B);
this.r2max = (this.R>0) ? this.R/this.max : 0;
this.g2max = (this.G>0) ? this.G/this.max : 0;
this.b2max = (this.B>0) ? this.B/this.max : 0;
}
Color.prototype.setBaseColors = function() {
function avrg(v1,v2,k) { return v1 + Math.round((v2-v1)*k); }
var hue = Math.round(this.H) % 360;
var d = hue%15 + (this.H-Math.floor(this.H));
var k = d/15;
var d1 = hue - Math.floor(d);
var c1 = colWheel[d1];
d1 = (d1+15)%360;
var c2 = colWheel[d1];
this.baseR = avrg(c1.R,c2.R,k);
this.baseG = avrg(c1.G,c2.G,k);
this.baseB = avrg(c1.B,c2.B,k);
}
Color.prototype.countHSVByRGB = function() {
var c, c1,c2, f1,f2, d, dx, d1=null, d2=null;
for (var i=0;i<360;i+=15) {
c = colWheel[i];
dx = Math.abs(this.r2max-c.r2max) + Math.abs(this.g2max-c.g2max) + Math.abs(this.b2max-c.b2max);
if (d1==null || dx<d1) { d1=dx; f2=f1; f1=i }
if ( (d1!=dx) && (d2==null || dx<d2) ) { d2=dx; f2=i }
}
c1 = colWheel[f1];
c2 = colWheel[f2];
var cnt = 0;
d = 0;
if (c1.R!=c2.R) { cnt++; d += (this.R-c1.R)/(c2.R-c1.R); }
if (c1.G!=c2.G) { cnt++; d += (this.G-c1.G)/(c2.G-c1.G); }
if (c1.B!=c2.B) { cnt++; d += (this.B-c1.B)/(c2.B-c1.B); }
if (cnt) d = d/cnt;
this.H = f1+15*d;
this.S = (this.max) ? (this.max-this.min)/this.max : 0;
this.V = this.max/255;
this.setBaseColors();
}
Color.prototype.countRGBByHSV = function () {
this.setBaseColors();
var max = Math.max(Math.max(this.baseR,this.baseG),this.baseB);
var min = Math.min(Math.min(this.baseR,this.baseG),this.baseB);
var v = this.V*255;
var k = (max>0) ? v/max : 0;
this.R = Math.round(v-(v-this.baseR*k)*this.S);
this.G = Math.round(v-(v-this.baseG*k)*this.S);
this.B = Math.round(v-(v-this.baseB*k)*this.S);
this.checkRange();
this.countMinMax();
}
Color.prototype.rotate = function (angle) {
if (this.S>0 && this.V>0) {
var c = new Color(this.baseR,this.baseG,this.baseB);
var S1 = (c.S) ? this.S/c.S : 1;
var V1 = (c.V) ? this.V/c.V : 1;
var nh = (this.H + angle) % 360;
this.setHSV(nh,this.S,this.V);
c.setRGB(this.baseR,this.baseG,this.baseB);
var S2 = (c.S) ? this.S/c.S : 1;
var V2 = (c.V) ? this.V/c.V : 1;
this.setHSV(nh,this.S*S1/S2,this.V*V1/V2);
}
}
var colWheel = new Array(12);
colWheel['0'] = new Color(255,0,0,0);
colWheel['15'] = new Color(255,51,0,15);
colWheel['30'] = new Color(255,102,0,30);
colWheel['45'] = new Color(255,128,0,45);
colWheel['60'] = new Color(255,153,0,60);
colWheel['75'] = new Color(255,178,0,75);
colWheel['90'] = new Color(255,204,0,90);
colWheel['105'] = new Color(255,229,0,105);
colWheel['120'] = new Color(255,255,0,120);
colWheel['135'] = new Color(204,255,0,135);
colWheel['150'] = new Color(153,255,0,150