[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Use of cmy colour codes in Terminator
From: |
pauline-galea |
Subject: |
Re: Use of cmy colour codes in Terminator |
Date: |
Wed, 21 Apr 2021 03:05:44 +0200 |
It was just to inform you. Had gone through the whole colour thing and wrote
down the complete analysis of colour. How pigment work is very interesting.
I had been quite ignorant about it.
> Sent: Wednesday, April 21, 2021 at 12:37 PM
> From: "Koichi Murase" <myoga.murase@gmail.com>
> To: pauline-galea@gmx.com
> Cc: "help bash" <help-bash@gnu.org>
> Subject: Re: Use of cmy colour codes in Terminator
>
> 2021年4月21日(水) 8:57 <pauline-galea@gmx.com>:
> > Apologies, I was referring to
> >
> > G=$(((~M&0xFF)*M/255))
> >
> > The first M in the Magenta value, right
>
> Ah, OK. You are right. I had used the same variable name with M.
> Please use a different variable name for the complement of K. Then, it
> is something like
>
> > # CMYK to RGB
> > X=$((~K&0xFF))
> > R=$(((~C&0xFF)*X/255))
> > G=$(((~M&0xFF)*X/255))
> > B=$(((~Y&0xFF)*X/255))
>
> I haven't tested it again, so please be careful.
>
> --
> Koichi
>
- Use of cmy colour codes in Terminator, pauline-galea, 2021/04/19
- Re: Use of cmy colour codes in Terminator, Koichi Murase, 2021/04/19
- Re: Use of cmy colour codes in Terminator, pauline-galea, 2021/04/19
- Re: Use of cmy colour codes in Terminator, Koichi Murase, 2021/04/19
- Re: Use of cmy colour codes in Terminator, pauline-galea, 2021/04/19
- Re: Use of cmy colour codes in Terminator, Koichi Murase, 2021/04/20
- Re: Use of cmy colour codes in Terminator, pauline-galea, 2021/04/20
- Re: Use of cmy colour codes in Terminator, Koichi Murase, 2021/04/20
- Re: Use of cmy colour codes in Terminator,
pauline-galea <=