## Color.FromGray method

Returns a new Color with the requested gray value.

```csharp
public static Color FromGray(float gray)
```

| Parameter | Type | Description |
| --- | --- | --- |
| gray | Single | A float that represents the gray value of the color. |

### Return Value

A new instance of the [`Color`](../) class

### See Also

* class [Color](../)
* namespace [Aspose.Html.Drawing](../../../aspose.html.drawing/)
* assembly [Aspose.HTML](../../../)
