color.htm
(开头部分) 22KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="cs">
<head>
<title>网页配色</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<meta content="小雨论坛官方网,C#视频, ASP.net视频,网站外包,网页配色, C# ASP.NET网络培训, 小雨原创C#视频教材, ASP.net课件"
name="keywords" />
<link href="color/styl.css" type="text/css" rel="stylesheet">
<script src="color/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) {
后面还有 577 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
