# guide_material

Python reference for `nagasim.appearance.guide_material`. Provisional: it may change between minor versions, see [Appearance](../../appearance.md).

`nagasim.appearance.guide_material`

```python
guide_material(style: str, frame_color: str)
```

The material of a piece's side guides; use it rather than the raw `MATERIALS` entry.

A round or flat guide rail is bare zinc; a panel guide is cut from the frame, so it takes the
frame's material (`material("frame_color", frame_color)`). Colours are sRGB `#RRGGBB`; a glTF
base colour is `linear_rgb(srgb(m.color))`.

Parameters
----------
style : str
    The piece's `guide_style`: `round`, `flat` or `panel`.
frame_color : str
    The piece's `frame_color`, a name or a colour `#RRGGBB`.

Returns
-------
Material
    The guide's colour, metallic and roughness.

Raises
------
ValueError
    When *style* is not a guide style, or a panel's *frame_color* is not a frame colour.

See Also
--------
nagasim.appearance.material : The material of any other look value.
nagasim.appearance.look_of : The piece's `guide_style` and `frame_color`.

Examples
--------
>>> from nagasim.appearance import guide_material, material
>>> guide_material("panel", "orange") == material("frame_color", "orange")
True
