---
title: "ColorProducer"
description: "Alternative to `() -> Color` that's useful for avoiding boxing.

Can be used as:

fun nonBoxedArgs(color: ColorProducer?)"
type: "interface"
---

<div class='type'>Interface</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>



```kotlin
fun interface ColorProducer
```


Alternative to `() -> Color` that's useful for avoiding boxing.

Can be used as:

fun nonBoxedArgs(color: ColorProducer?)


## Functions

```kotlin
operator fun invoke(): Color
```


Return the color



