Each color model has its own characteristics, and it is useful to choose a model according to the operation you want to perform. Below are some examples.

カラーモデルにはそれぞれ特徴があるので、行いたい操作によってモデルを選ぶようにしましょう。このページではいくつか例をあげてみます。

(A quick note: I probably should have processed gamma for all the starting RGB values. Will review and update)

足し算と掛け算

Since RGB values simply represent the intensity of the three primary colors, they can be added and multiplied. In fact, 3D graphics make extensive use of RGB addition and multiplication.

RGBの値は単純に三原色の量を表しているので足し算や掛け算ができます。実際に3DグラフィックスではRGBの足し算と掛け算を多用します。

RGB addition can reproduce additive color mixing, such as adding green light to red light to produce yellow. However, since the values have a hard maximum, the result can be unnatural when mixing bright colors. For example, mixing pale pink and light blue will result in pure white because all the RGB calues hit the maximum. In the real world, because there is no limit to the amount of light, and the eyes adjust the sensitivity according to the brightness, the mix should appear slightly purplish.

RGBの足し算は赤い光に緑の光を足すと黄色になるといった加法混色を再現できます。ただし値がすぐ頭打ちになるので、例えば薄いピンクと水色を混ぜても真っ白になるなど明るい色を混ぜる場合には不自然な結果になります。現実世界では光の量に限界はなく明るさに応じて目が感度を調整するので、少し紫がかった色になるはずです。

In the demo below, you can randomize the colors by clicking on the canvas.

下のデモではキャンバスをクリックすと色がランダムに変化します。

https://openprocessing.org/sketch/1832153

Or subtractive color mixing can be done as well by subtraction values.

引き算で減法混色もできます。

https://openprocessing.org/sketch/1832150

Multiplication corresponds to the case such as a yellow object appears dark when illuminated by blue light. The light reflected off the surface of an object will be the light from the source multiplied by the reflective property of the object. The effect of color filters attached to the camera lens can be also represented as multiplications.