
## from_gray {#float}

Returns a new Color with the requested gray value.


### Returns 


A new instance of the [`Color`](/html/python-net/aspose.html.drawing/color) class


```python
def from_gray(self, gray):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| gray | float | A float that represents the gray value of the color. |



### See Also
* module [`aspose.html.drawing`](../../)
* class [`Color`](/html/python-net/aspose.html.drawing/color)
