---
title: "ColorValue constructor"
url: "https://reference.aspose.com/diagram/python-net/aspose.diagram/colorvalue/__init__/"
product: "Aspose.Diagram for Python via .NET API References"
---


## ColorValue(value, unit) {#str-MeasureConst}

Constructor.



```python
def __init__(self, value, unit):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| value | str |  |
| unit | [MeasureConst](/diagram/python-net/aspose.diagram/measureconst) |  |



### See Also
* module [aspose.diagram](../../)
* class [ColorValue](/diagram/python-net/aspose.diagram/colorvalue)
