---
title: "from_hwb method"
url: "https://reference.aspose.com/svg/python-net/aspose.svg.drawing/color/from_hwb/"
product: "Aspose.SVG for Python via .NET API References"
---


## from_hwb {#float-float-float}

Returns a new Color with the requested hue, whiteness, blackness values.


### Returns 


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


```python
def from_hwb(self, hue, whiteness, blackness):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| hue | float | A float that represents the hue component of the color. |
| whiteness | float | A float that represents the whiteness component of the color. |
| blackness | float | A float that represents the blackness component of the color. |



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