blob: 0d0a0d8bbbbde9cd3e126fe295aff03b5ad67117 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
---
title: RGB
slug: Glossary/RGB
translation_of: Glossary/RGB
---
<p>RGBは、赤、緑、青という3つの基本要素(またはチャネル)を混ぜ合わせることで表現されるカラーモデルです。各色は、最終的な色を決定する際、赤、緑、青それぞれの強度を示す3つの数字のシーケンス (通常は0.0〜1.0、または0〜255) で表されます。</p>
<p>There are many ways to describe the RGB components of a color. In {{Glossary("CSS")}} they can be represented as a single 24-bit integer in hexadecimal notation (for example, <code>#</code><code>add</code>8e6 is light blue), or in functional notation as three separate 8-bit integers (for example, rgb(46, 139, 87) is sea green). In {{Glossary("OpenGL")}}, {{Glossary("WebGL")}}, and {{Glossary("GLSL")}} the red-green-blue components are fractions (floating-point numbers between 0.0 and 1.0), although in the actual color buffer they are typically stored as 8-bit integers. Graphically, a color can be represented as a point in a three-dimensional grid or cube, where each dimension (or axis) corresponds to a different channel.</p>
<h2 id="Learn_more">Learn more</h2>
<h3 id="General_knowledge">General knowledge</h3>
<ul>
<li><a href="https://en.wikipedia.org/wiki/RGB_color_model">RGB color model on Wikipedia</a></li>
</ul>
<h3 id="Learn_about_it">Learn about it</h3>
<ul>
<li><a href="/ja/docs/Web/CSS/color_value">CSS data type: <color></a></li>
</ul>
|