color problem?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

color problem?

EstebanLM
Hi,

try:

Color r: 255 g: 255 b: 122 alpha: 255.

AFAIK, that should bring a yellow color. And it is not.
Anyone knows why?

Esteban


Reply | Threaded
Open this post in threaded view
|

Re: color problem?

Erwan Douaille
Don't know, and i tried with h:s:v: and it doesn't work too, as you can see ...

Images intégrées 1




2012/8/8 Esteban Lorenzano <[hidden email]>
Hi,

try:

Color r: 255 g: 255 b: 122 alpha: 255.

AFAIK, that should bring a yellow color. And it is not.
Anyone knows why?

Esteban





--
Best regards,

Douaille Erwan <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: color problem?

Gary Chambers-4
In reply to this post by EstebanLM
Color values range from 0.0 to 1.0 use

(Color r: 255 g: 255 b: 122 range: 255) alpha: 1.0

instead ;-)

Regards, Gary

----- Original Message -----
From: "Esteban Lorenzano" <[hidden email]>
To: "[hidden email] Development"
<[hidden email]>
Sent: Wednesday, August 08, 2012 5:05 PM
Subject: [Pharo-project] color problem?


> Hi,
>
> try:
>
> Color r: 255 g: 255 b: 122 alpha: 255.
>
> AFAIK, that should bring a yellow color. And it is not.
> Anyone knows why?
>
> Esteban
>
>


Reply | Threaded
Open this post in threaded view
|

Re: color problem?

EstebanLM
why this is logic? shouldn't be enough just using r:g:b:alpha:?

sorry, my graphics skills are close to zero so... no idea if what I'm saying has any sense :)

On Aug 9, 2012, at 11:44 AM, "Gary Chambers" <[hidden email]> wrote:

> Color values range from 0.0 to 1.0 use
>
> (Color r: 255 g: 255 b: 122 range: 255) alpha: 1.0
>
> instead ;-)
>
> Regards, Gary
>
> ----- Original Message ----- From: "Esteban Lorenzano" <[hidden email]>
> To: "[hidden email] Development" <[hidden email]>
> Sent: Wednesday, August 08, 2012 5:05 PM
> Subject: [Pharo-project] color problem?
>
>
>> Hi,
>>
>> try:
>>
>> Color r: 255 g: 255 b: 122 alpha: 255.
>>
>> AFAIK, that should bring a yellow color. And it is not.
>> Anyone knows why?
>>
>> Esteban
>>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: color problem?

Fernando olivero-2
In reply to this post by Gary Chambers-4
Hi Esteban,

It's a matter of percentage, meaning that you can chose an percentage
of r, of g, and of b, and by default the values go from 0.0 to 1.0.

If you want to use 255 as the max (as 1.0), then do  as Gary posted.

Fernando



On Thu, Aug 9, 2012 at 4:32 PM, Esteban Lorenzano <[hidden email]> wrote:

> why this is logic? shouldn't be enough just using r:g:b:alpha:?
>
> sorry, my graphics skills are close to zero so... no idea if what I'm saying has any sense :)
>
> On Aug 9, 2012, at 11:44 AM, "Gary Chambers" <[hidden email]> wrote:
>
>> Color values range from 0.0 to 1.0 use
>>
>> (Color r: 255 g: 255 b: 122 range: 255) alpha: 1.0
>>
>> instead ;-)
>>
>> Regards, Gary
>>
>> ----- Original Message ----- From: "Esteban Lorenzano" <[hidden email]>
>> To: "[hidden email] Development" <[hidden email]>
>> Sent: Wednesday, August 08, 2012 5:05 PM
>> Subject: [Pharo-project] color problem?
>>
>>
>>> Hi,
>>>
>>> try:
>>>
>>> Color r: 255 g: 255 b: 122 alpha: 255.
>>>
>>> AFAIK, that should bring a yellow color. And it is not.
>>> Anyone knows why?
>>>
>>> Esteban
>>>
>>
>>
>
>