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


## from_hwba {#float-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_hwba(self, hue, whiteness, blackness, alpha):
    ...
```


| 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. |
| alpha | float | A float that represents the alpha component of the color. |



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