---
id: "P:cAlgo.API.Shape.FillColor"
kind: "property"
type: "T:cAlgo.API.Shape"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Shapes/Shape/FillColor/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# Shape.FillColor

Member of [Shape](https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Shapes/Shape/index.md).

## FillColor

Gets or sets the fill color.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Accepted without error but never displayed, so control events such as Click are never raised.
- Cloud: Accepted without error but never displayed, so control events such as Click are never raised.

C#:

```csharp
public Color FillColor {get; set;}
```

Python:

```python
shape.FillColor: Color
```

### Returns

`Color` — 

### Examples

C#:

```csharp
var rectangle = new Rectangle { Width = 120, Height = 40 };
rectangle.FillColor = Symbol.Bid > Bars.OpenPrices.LastValue ? Color.Green : Color.Red;
Chart.AddControl(rectangle);
```

Python:

```python
rectangle = Rectangle()
rectangle.Width = 120
rectangle.Height = 40
rectangle.FillColor = Color.Green if api.Symbol.Bid > api.Bars.OpenPrices.LastValue else Color.Red
api.Chart.AddControl(rectangle)
```

