RGBA カラーの表現をします。
This structure is used throughout Unity to pass colors around.
Each color component is a floating point value with a range from 0 to 1.
Components (r,g,b) define a color in RGB color space. Alpha component (a)
defines transparency - alpha of one is completely opaque, alpha of zero is completely
transparent.
black | 黒色。RGBA は (0, 0, 0, 1) |
blue | 青色。RGBA は (0, 0, 1, 1) |
clear | RGBA を (0, 0, 0, 0) にします。 |
cyan | シアン。RGBA は (0, 1, 1, 1) |
gray | 灰色。RGBA は (0.5, 0.5, 0.5, 1) |
green | ソリッドグリーン。RGBA は (0, 1, 0, 1) |
grey | gray と一緒。RGBA は (0.5, 0.5, 0.5, 1) |
magenta | マゼンタ。RGBA は (1, 0, 1, 1) |
red | 赤色。RGBA は (1, 0, 0, 1) |
white | 白色。RGBA は (1, 1, 1, 1) |
yellow | 黄色。RGBA は (1, 0.92, 0.016, 1) |
a | Alpha component of the color (0 is transparent, 1 is opaque). |
b | 青成分 |
g | 緑成分 |
gamma | ガンマを適用した色を返します。 |
grayscale | グレースケールが格納されている(読み込み専用) |
linear | sRGB カラーのリニア値。 |
maxColorComponent | 色成分値の最大値を返します: Max(r,g,b) |
r | 赤成分 |
this[int] | r は [0]、g は [1]、b は [2]、a は [3] に格納されます。 |
Color | r、g、b、a 成分から Color を作成します。 |
ToString | この色の情報を表す整形された文字列を返します。 |
HSVToRGB | HSV の入力値から RGB 色を作成します。 |
Lerp | t で a と b 間の色を線形補間します。 |
LerpUnclamped | t で a と b 間の色を線形補間します。 |
RGBToHSV | 入力されたカラーの色相、彩度、そして RGB 値を計算します。 |
Color | Color は Vector4 から暗黙的に変換することができます。 |
operator - | Color b を Color a で減算します。各色成分は個別にスケーリングされます。 |
operator * | 2 つの Color を乗算します。各色成分は個別にスケーリングされます。 |
operator / | Color a を float 値 b で割ります。各色成分は個別にスケーリングされます。 |
operator + | 2 つの色を加算します。各成分のコンポーネントは個別に加算されます。 |
Vector4 | Color は Vector4 から暗黙的に変換することができます。 |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.