Before I file this, I'm just trying to figure out how much of this I'm
misunderstanding. :)

Using Photoshop or http://www.opentopia.com/tools/colcal/, my light
blue color (#ADC1CC) has the following values:
Hue: 201
Saturation: 15
Lightness: 80

Using SASS:
>> $c = #ADC1CC
#adc1cc
>> hue($c)
201.29deg
>> saturation($c)
23.308%
>> lightness($c)
73.922%

Saturation and Lightness are substantially off. Is this a bug, or
expected?

Based on the color values from SASS, the darken function seems to work
properly:
>> $dark = darken($c, 50%)
#2f414b
>> hue($dark)
201.29deg
>> saturation($dark)
23.308%
>> lightness($dark)
23.922%

The only value that has been affected is the lightness (73.922% - 50%
= 23.922%). However, when I look at the dark color's hex value
(#2f414b) in Photoshop, its values are:
Hue: 201 (was 201)
Saturation: 37 (was 15)
Lightness: 29 (was 80)

The lightness is pretty close to correct (80 - 50 = 30), but the
saturation is way off. Is this the same bug as above, a different bug,
or working as expected?


On Aug 25, 12:51 pm, Chris Eppstein <[email protected]> wrote:
> This looks like a sass bug:
>
> $ sass -i>> $c : #ADC1CC
> #adc1cc
> >> saturation($c)
> 23.308%
> >> saturation(darken($c, 50%))
> 23.308%
> >> darken($c, 50%)
> #2f414b
> >> saturation(#2f414b)
>
> 22.951%
>
> Can you file a bug? We'll get it fixed soon:http://github.com/nex3/haml/issues
>
> -chris
>
> On Wed, Aug 25, 2010 at 12:08 PM, BladeBronson <[email protected]>wrote:
>
>
>
> > Hi all,
>
> > I've just joined the group, but have been working with SASS for the
> > new version of Wikia.com. We provide wikis for tons of communities
> > (Wookieepedia, Lostpedia, Muppet Wiki, etc) and we're building a theme
> > designer that will make it super easy to customize the colors of the
> > wiki - based on SASS.
>
> > I've been having trouble understanding some of the color manipulation
> > functions. For example, I'm using this light blue color:
> > Hex: ADC1CC
> > H: 201
> > S: 15
> > B: 80
>
> > I want to darken the color by 50%: darken($light-blue, 50%). This is
> > the resulting color:
> > Hex: 2F414B
> > H: 201
> > S: 37
> > B: 29
>
> > It seems like it should have been:
> > Hex: 576166
> > H: 201
> > S: 15
> > B: 40
>
> > If this is working as expected, is there a way that I could achieve
> > the color that I was expecting? Thanks a bunch.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Haml" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected] <haml%[email protected]>.
> > For more options, visit this group at
> >http://groups.google.com/group/haml?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to