define_color
Creates or updates a named color by pairing a physical material with RGB values and optional finish, so Teardown drawing tools use the correct break behavior and look.
Instructions
Define a named color: a material plus a displayed color, used by the drawing tools.
In Teardown the material decides how a voxel breaks; the color is only its look. Typical: body paint 'weak metal' (official cars), windows 'glass', lights finish 'emissive'. Redefining an existing name changes its rgb/finish everywhere it is used (its material cannot change). Each material has 8 or 16 color slots. Example: name 'body_paint', material 'weak metal', rgb [180, 30, 30].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rgb | Yes | Displayed color [red, green, blue], 0-255. | |
| name | Yes | Color name, for example 'body_paint'. | |
| finish | No | Rendering only: 'auto' = glass finish for glass (like official windows), matte otherwise; 'emissive' glows (lights). | auto |
| project | Yes | Project name, for example 'red_pickup'. | |
| material | Yes | Physical material in game (decides strength and behaviour). |