help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use of cmy colour codes in Terminator


From: Koichi Murase
Subject: Re: Use of cmy colour codes in Terminator
Date: Wed, 21 Apr 2021 09:37:49 +0900

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]