PHP网页web颜色调配器代码
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-08 17:27:06
Original
1517 people have browsed it
<script>ec(2);</script>
for ($y=0;$y
{
echo "n";
for ($x=0;$x
{
$abs00=sqrt(($x*$x)+($y*$y));
if ($abs00>16)
$abs00=16;
$abs01=sqrt(($x*$x)+((16-$y)*(16-$y)));
if ($abs01>16)
$abs01=16;
$abs10=sqrt(((16-$x)*(16-$x))+($y*$y));
if ($abs10>16)
$abs10=16;
$red=((16-$abs00)*16)-1;
if ($red
$red=0;
$green=((16-$abs01)*16)-1;
if ($green
$green=0;
$blue= ((16-$abs10)*16)-1;
if ($blue
$blue=0;
$col = sprintf("%02x%02x%02x",$red,$green,$blue);
echo "
($red,$green,$blue=$col)
| n";
}
echo "
n";
}
?>
echo "
大家好,这个颜色可以了吗?";
?>
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
-
2025-02-26 03:58:14
-
2025-02-26 03:38:10
-
2025-02-26 03:17:10
-
2025-02-26 02:49:09
-
2025-02-26 01:08:13
-
2025-02-26 00:46:10
-
2025-02-25 23:42:08
-
2025-02-25 22:50:13
-
2025-02-25 21:54:11
-
2025-02-25 20:45:11