[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

[MD:1090]Color name.



Keiichi Suzuki <keiichi@xxxxxxxxxxxx> writes:

> この辺は環境に依存していると思いますので、要望の部類に入るのかも知れませ
> んが...
> 
> 色の指定時に "rgb:ff/ff/ff" という形式を使用できるようにお願いします。

あれれ、....

X Window SystemのManualに、こんな記述が、... ;_;

 An RGB Device specification is identified  by  the  prefix
       "rgb:" and has the following syntax:

           rgb:<red>/<green>/<blue>

               <red>, <green>, <blue> := h | hh | hhh | hhhh
               h := single hexadecimal digits
       Note  that  h indicates the value scaled in 4 bits, hh the
       value scaled in 8 bits, hhh the value scaled in  12  bits,
       and hhhh the value scaled in 16 bits, respectively.  These
       values are passed  directly  to  the  X  server,  and  are
       assumed to be gamma corrected.

今のMeadowは、
               <red>, <green>, <blue> := hhhh

これだけです。うーむ、昔のXのマニュアルにはこれしか書いてなかったような気がする。
けど、気のせいだったみたいです。;_;

#xxxxxはbackward compatibility用です。出展はX Window SystemのManual ^^;;;

      For backward compatibility, an older syntax for RGB Device
       is supported, but its continued  use  is  not  encouraged.
       The  syntax is an initial sharp sign character followed by
       a numeric specification, in one of the following formats:

           #RGB                      (4 bits each)
           #RRGGBB                   (8 bits each)
           #RRRGGGBBB                (12 bits each)
           #RRRRGGGGBBBB             (16 bits each)

       The R, G, and B represent single hexadecimal digits.  When
       fewer  than 16 bits each are specified, they represent the
       most-significant bits of the value (unlike the "rgb:" syn-
       tax,  in  which  values are scaled).  For example, #3a7 is
       the same as #3000a0007000.

from himi