[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Color Palette Nits
From:       "=?ISO-8859-1?Q?Percy_Camilo_Trive=F1o_Aucahuasi?=" <orgyforever () gmail ! com>
Date:       2008-06-26 20:20:41
Message-ID: 579229230806261320q153bfc3fv90fd37794ca67cde () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Matthew Woehlke wrote:
>Aside from David's comment (which is right), what is "luminance"? :-)
>KColorUtils::luma returns the 'apparent brightness' of a color (white is
> 1.0, black is 0.0, anything else is somewhere in-between). More
> technically, it returns the Y' component of the color's H'C'Y'
> colorspace representation.

As far I know, luminance is apply in colors to obtain a value without gamma
correction, instead luma that apply gamma correction to every -RGB-
component of the color.

Also: Matthew Woehlke
>At the very least, the above is redundant with qGray - KCU::luma uses gamma
correction as well, which matches with how KCS handles >light/dark stuff.

In short:
Luma:
Y' = 0.2126 R' + 0.7152 G' + 0.0722 B'
Luminance:
Y = 0.2126 R + 0.7152 G + 0.0722 B

KColorUtils only have a luma fuction ... luminance maybe could be this:
KHCY::lumag in KColorSpaces.

Percy






On Wed, Jun 25, 2008 at 11:46 AM, Matthew Woehlke <
mw_triad@users.sourceforge.net> wrote:

> Joshua J. Berry wrote:
> > On Tuesday 24 June 2008 13:03:43 Matthew Woehlke wrote:
> >> Joshua J. Berry wrote:
> >>> Also, if you'd like to see the color scheme I used for this screenshot,
> >>> please let me know.  The scheme's major trait is that the Window and
> View
> >>> palettes are (almost) inversions of each other -- e.g. the View's
> >>> background is #E0E0E0, and the Window's foreground is also #E0E0E0.
> >> If you want to find glitches like this (and it's known that oxygen has a
> >> number of such), use http://pastebin.ca/987866. It's ugly as heck, but
> >> then, looking pretty isn't the point :-). It's a palette I made with the
> >> sole purpose of making role misuse problems such as those you describe
> >> visible.
> >
> > Excellent, thanks.
> >
> > Which ones are already known?  When I actually do get around to filing
> bugs,
> > I'll ignore those.
>
> Uh... I have no idea :-). There might have been a list on the wiki once,
> but there doesn't seem to be one any more. I'd see if you can catch
> boemann and/or anyone else working on the style in #oxygen, and see what
> the best way to proceed is. Incorrect role uses are usually trivial to
> fix. If I had the time to squash them myself I'd want a wiki list, as
> IMO having a bug for each one would be overkill (inefficient use of time
> managing b.k.o), but others may feel differently.
>
> I do recommend using my "test" color scheme; it's ugly as heck but it
> was designed so that each role is sufficiently unique that errors are
> not only easy to spot, but so that it's easy to visually identify what
> role /is/ being used. (Having that information makes it a bit easier to
> track down the glitch in the code as well.)
>
> --
> Matthew
> .sig hazy, try again later.
>
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> unsubscribe <<
>

[Attachment #5 (text/html)]

Matthew Woehlke wrote:<br>&gt;Aside from David&#39;s comment (which is right), what \
is &quot;luminance&quot;? :-)<br> &gt;KColorUtils::luma returns the &#39;apparent \
brightness&#39; of a color (white is<br>&gt; 1.0, black is 0.0, anything else is \
somewhere in-between). More<br>&gt; technically, it returns the Y&#39; component of \
the color&#39;s H&#39;C&#39;Y&#39;<br>&gt; colorspace representation.<br><br>As far I \
know, luminance is apply in colors to obtain a value without gamma correction, \
instead luma that apply gamma correction to every -RGB- component of the \
color.<br><br>Also: Matthew Woehlke<br> &gt;At the very least, the above is redundant \
with qGray - KCU::luma uses gamma correction as well, which matches with how KCS \
handles &gt;light/dark stuff.<br><br>In short:<br>Luma:<br>Y&#39; = 0.2126 R&#39; + \
0.7152 G&#39; + 0.0722 B&#39;<br> Luminance:<br>Y = 0.2126 R + 0.7152 G + 0.0722 B \
<br><br>KColorUtils only have a luma fuction ... luminance maybe could be \
this:<br>KHCY::lumag in KColorSpaces.<br> <br>Percy<br><br><br>
<br><br><br><br><div class="gmail_quote">On Wed, Jun 25, 2008 at 11:46 AM, Matthew \
Woehlke &lt;<a href="mailto:mw_triad@users.sourceforge.net" \
target="_blank">mw_triad@users.sourceforge.net</a>&gt; wrote:<br><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;">

<div>Joshua J. Berry wrote:<br>
&gt; On Tuesday 24 June 2008 13:03:43 Matthew Woehlke wrote:<br>
&gt;&gt; Joshua J. Berry wrote:<br>
&gt;&gt;&gt; Also, if you&#39;d like to see the color scheme I used for this \
screenshot,<br> &gt;&gt;&gt; please let me know. &nbsp;The scheme&#39;s major trait \
is that the Window and View<br> &gt;&gt;&gt; palettes are (almost) inversions of each \
other -- e.g. the View&#39;s<br> &gt;&gt;&gt; background is #E0E0E0, and the \
Window&#39;s foreground is also #E0E0E0.<br> &gt;&gt; If you want to find glitches \
like this (and it&#39;s known that oxygen has a<br> &gt;&gt; number of such), use <a \
href="http://pastebin.ca/987866" target="_blank">http://pastebin.ca/987866</a>. \
It&#39;s ugly as heck, but<br> &gt;&gt; then, looking pretty isn&#39;t the point :-). \
It&#39;s a palette I made with the<br> &gt;&gt; sole purpose of making role misuse \
problems such as those you describe<br> &gt;&gt; visible.<br>
&gt;<br>
&gt; Excellent, thanks.<br>
&gt;<br>
&gt; Which ones are already known? &nbsp;When I actually do get around to filing \
bugs,<br> &gt; I&#39;ll ignore those.<br>
<br>
</div>Uh... I have no idea :-). There might have been a list on the wiki once,<br>
but there doesn&#39;t seem to be one any more. I&#39;d see if you can catch<br>
boemann and/or anyone else working on the style in #oxygen, and see what<br>
the best way to proceed is. Incorrect role uses are usually trivial to<br>
fix. If I had the time to squash them myself I&#39;d want a wiki list, as<br>
IMO having a bug for each one would be overkill (inefficient use of time<br>
managing b.k.o), but others may feel differently.<br>
<br>
I do recommend using my &quot;test&quot; color scheme; it&#39;s ugly as heck but \
it<br> was designed so that each role is sufficiently unique that errors are<br>
not only easy to spot, but so that it&#39;s easy to visually identify what<br>
role /is/ being used. (Having that information makes it a bit easier to<br>
track down the glitch in the code as well.)<br>
<font color="#888888"><br>
--<br>
Matthew<br>
.sig hazy, try again later.<br>
</font><div><div></div><div><br>
<br>
&gt;&gt; Visit <a href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> to \
unsubscribe &lt;&lt;<br> </div></div></blockquote></div><br>



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic