> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PIX_COLOR

> PIX_COLOR

# PIX\_COLOR

イベント用の特定の色を指定します。

## 構文

```cpp theme={null}
UINT PIX_COLOR(  
         BYTE r,  
         BYTE g,  
         BYTE b  
)  
```

### パラメーター

*r*   \
Type: BYTE

色の赤の成分です。

*g*   \
Type: BYTE

色の緑の成分です。

*b*   \
Type: BYTE

色の青の成分です。

### 戻り値

Type: UINT

指定された色を含む UINT を返します。

## 解説

PIX\_COLOR\* 関数は、PIX のイベント/マーカー API にメタデータとして渡す色を指定するために使用します。
特定の色をイベントに指定するには `PIX_COLOR` を使用します。または、[PIX\_COLOR\_INDEX](/reference/tools/pix3/functions/pix_color_index) を使用して一意のイベント カテゴリのセットを指定し、PIX に各カテゴリを表す色を選択させることもできます。

PIX\_COLOR\* 関数を使用すると、いくつかの関数の color パラメーターを決定し、PIX チャートでの表示方法を指定できます。対象となる関数には [PIXBeginEvent](/reference/tools/pix3/functions/pixbeginevent)、[PIXScopedEvent](/reference/tools/pix3/functions/pixscopedevent)、および [PIXSetMarker](/reference/tools/pix3/functions/pixsetmarker) があります。

## 要件

**ヘッダー:** pix3.h

**ライブラリ:** pixevt.lib

**サポートされているプラットフォーム:** XBOX One ファミリ本体および XBOX Series 本体

## 関連項目

[PIX\_COLOR\_INDEX](/reference/tools/pix3/functions/pix_color_index)\
[PIXBeginEvent](/reference/tools/pix3/functions/pixbeginevent)\
[PIXScopedEvent](/reference/tools/pix3/functions/pixscopedevent)\
[PIXSetMarker](/reference/tools/pix3/functions/pixsetmarker)\
[PIX (NDA トピック)](/tools/tools-console/pix/pix)\
[PIX3](/reference/tools/pix3/pix3_members)


## Related topics

- [PIX_COLOR_INDEX](/ja-jp/reference/tools/pix3/functions/pix_color_index.md)
- [PIXSetMarker 関数](/ja-jp/reference/tools/pix3/functions/pixsetmarker.md)
- [PIXSetMarker reference](/ja-jp/reference/tools/pix3/functions/pixsetmarker_2.md)
- [PIXBeginEvent 関数](/ja-jp/reference/tools/pix3/functions/pixbeginevent.md)
- [PIXSetMarker function reference](/ja-jp/reference/tools/pix3/functions/pixsetmarker_3.md)
