[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: www/areas/accessibility
From: Olaf Schmidt <ojschmidt () kde ! org>
Date: 2006-07-24 19:29:36
Message-ID: 1153769376.887145.7069.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 565909 by ojschmidt:
Try yet again to repair hue function
M +3 -3 oxygen.php
--- trunk/www/areas/accessibility/oxygen.php #565908:565909
@@ -98,7 +98,7 @@
if ($max == $color ["redL"]) {
$factor = 0.2126;
- if ($med == $color ["greenL"]) {
+ if ($min == $color ["blueL"]) {
$factor += 0.7152 * $hue;
$color ["hue"] = $hue/6;
} else {
@@ -108,7 +108,7 @@
} elseif ($max == $color ["greenL"]) {
$factor = 0.7152;
- if ($med == $color ["redL"]) {
+ if ($min == $color ["blueL"]) {
$factor += 0.2126 * $hue;
$color ["hue"] = 1/3 - $hue/6;
} else {
@@ -118,7 +118,7 @@
} else {
$factor = 0.0722;
- if ($med == $color ["redL"]) {
+ if ($med == $color ["greenL"]) {
$factor += 0.2126 * $hue;
$color ["hue"] = 2/3 + $hue/6;
} else {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic