# GraphicsExtensionMethods.FillMotif examples

Examples for [FillMotif](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/fillmotif.md) in Grasshopper2.Extensions.GraphicsExtensionMethods.

## C#

```cs
using Grasshopper2.Extensions;

// As an extension method
graphics.FillMotif(region, motif);

// As a static method
GraphicsExtensionMethods.FillMotif(graphics, region, motif);
```

## Python

```python
import clr
clr.AddReference('Grasshopper2')
import Grasshopper2.Extensions
clr.ImportExtensions(Grasshopper2.Extensions)

# As an extension method
graphics.FillMotif(region, motif)

# As a static method
Grasshopper2.Extensions.GraphicsExtensionMethods.FillMotif(graphics, region, motif)
```
