
## from_cmyk {#float-float-float-float}

Returns a new Color with the requested cyan, magenta, yellow, key (black) values.


### Returns 


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


```python
def from_cmyk(self, cyan, magenta, yellow, key):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| cyan | float | A float that represents the cyan component of the color. |
| magenta | float | A float that represents the magenta component of the color. |
| yellow | float | A float that represents the yellow component of the color. |
| key | float | A float that represents the key component of the color. |



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