# Drawstep engine · Statics & layers · `setColors` > Set colors — e.g. “~ is colorless”. Engine: Magic: The Gathering (`mtg`). This is one primitive of the Drawstep card vocabulary; field names and the discriminator are exact. Wiki page: https://drawstep.xyz/wiki/mtg/statics#setColors ## Where it goes The `effect` of a static ability (or one of its `effects`): `{ "kind": "static", "effect": { "type": "setColors", … } }`. Applied continuously through the layer system. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `to` | `TargetDef` | yes | What it applies to (TargetDef) | | `colors` | `string[]` | yes | Colors as W / U / B / R / G codes | | `chosenColor` | `boolean \| string` | no | CR 105.3, 613.1e: the color chosen for the source replaces the colors ("is the chosen color"); true reads the color key, a string names it. Nothing changes until a color is chosen | | `cda` | `boolean` | no | CR 604.3: a characteristic-defining ability of the object itself; it functions in every zone ("Clara Oswald is the chosen color") | ## Minimal form ```json {"type":"setColors","to":{"of":"object","mode":"self"},"colors":[]} ``` The engine reads that minimal form as: “~ is colorless”. ## Stock examples - **Verdant Hue** — “Green creatures are blue.” ```json {"type":"setColors","to":{"of":"object","mode":"all","filter":{"types":["Creature"],"colors":["G"]}},"colors":["U"]} ``` - **Azure Hue** — “Blue creatures are green.” ```json {"type":"setColors","to":{"of":"object","mode":"all","filter":{"types":["Creature"],"colors":["U"]}},"colors":["G"]} ``` - **Thran Lens** — “All permanents are colorless.” ```json {"type":"setColors","to":{"of":"object","mode":"all","filter":{}},"colors":[]} ``` ## Related - [Statics & layers](https://drawstep.xyz/wiki/mtg/statics.md) — the whole topic - [Filters & targets](https://drawstep.xyz/wiki/mtg/targets.md) — how `target` / `filter` select objects and players (selection algebra) - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive