> ## 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_INDEX

> PIX_COLOR_INDEX

# PIX\_COLOR\_INDEX

一意のイベント カテゴリのセットを指定し、PIX に各カテゴリを表す色を選択させます。

## 構文

```cpp theme={null}
UINT PIX_COLOR_INDEX(  
         BYTE i  
)  
```

### パラメーター

*i*   \
Type: BYTE

色のインデックスです。

### 戻り値

Type: UINT

カテゴリを表す色を含む UINT を返します。

## 解説

PIX\_COLOR\* 関数は、PIX のイベント/マーカー API にメタデータとして渡す色を指定するために使用します。特定の色をイベントに指定するには [PIX\_COLOR](/reference/tools/pix3/functions/pix_color) を使用します。あるいは、一意のイベント カテゴリのセットを指定し、PIX に各カテゴリを表す色を選択させるには `PIX_COLOR_INDEX` を使用します。`PIX_COLOR_INDEX` では 8 種類の色インデックスを使用できます。関数は *i* % 8 を用いてインデックス値をラップし、対応する色を決定するインデックスを選択します。\
PIX\_COLOR\* 関数を使用すると、いくつかの関数の color パラメーターを決定し、PIX チャートでの表示方法を指定できます。対象となる関数には、オーバーロードされたメソッド [PIXBeginEvent](/reference/tools/pix3/functions/pixbeginevent-overloads) および [PIXSetMarker](/reference/tools/pix3/functions/pixsetmarker-overloads) があります。

## 要件

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

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

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

## 関連項目

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


## Related topics

- [PIX_COLOR](/ja-jp/reference/tools/pix3/functions/pix_color.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)
