# InterpolationNode

Artifact: [androidx.ink:ink-brush](https://developer.android.com/jetpack/androidx/releases/ink) [View Source](https://cs.android.com/search?q=file:androidx/ink/brush/behavior/InterpolationNode.kt+class:androidx.ink.brush.behavior.InterpolationNode) Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

*** ** * ** ***

Common/All
- Cmn

  ```
  class InterpolationNode : ValueNode
  ```

|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) ||||
| ↳ | [androidx.ink.brush.behavior.Node](https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/Node) |||
|   | ↳ | [androidx.ink.brush.behavior.ValueNode](https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode) ||
|   |   | ↳ | [androidx.ink.brush.behavior.InterpolationNode](https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode) |

*** ** * ** ***

A `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode` that interpolates between two inputs based on a parameter input. The specific kind of interpolation performed depends on the `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode.Interpolation` parameter.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode.Interpolation` Interpolation functions for use in an `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode`. |

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode#InterpolationNode(androidx.ink.brush.behavior.InterpolationNode.Interpolation,androidx.ink.brush.behavior.ValueNode,androidx.ink.brush.behavior.ValueNode,androidx.ink.brush.behavior.ValueNode)( interpolation: https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode.Interpolation, paramInput: https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode, startInput: https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode, endInput: https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode )` Creates an `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode` that interpolates between two inputs based on a parameter input. | Cmn |

| ### Public functions |
|---|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode#hashCode()()` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode#toString()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode#endInput()` The input node that produces the ending value for the interpolation. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode.Interpolation` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode#interpolation()` The kind of interpolation to perform. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode#paramInput()` The input node that produces the parameter value used to interpolate between the start and end inputs. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode#startInput()` The input node that produces the starting value for the interpolation. | Cmn |

### Inherited functions

From [androidx.ink.brush.behavior.Node](https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/Node) `https://developer.android.com/reference/kotlin/androidx/ink/brush/Version` `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/Node#calculateMinimumRequiredVersion()()`

Returns the minimum required `https://developer.android.com/reference/kotlin/androidx/ink/brush/Version` for this `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/Node`.
Cmn

### Inherited properties

From [androidx.ink.brush.behavior.Node](https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/Node) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode>` `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/Node#inputs()`

The ordered list of inputs that this node directly depends on.
Cmn

## Public constructors

### InterpolationNode

Cmn Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

```
InterpolationNode(
    interpolation: InterpolationNode.Interpolation,
    paramInput: ValueNode,
    startInput: ValueNode,
    endInput: ValueNode
)
```

Creates an `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode` that interpolates between two inputs based on a parameter input. The specific kind of interpolation performed depends on the `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode.Interpolation` parameter.

| Parameters |
|---|---|
| `interpolation: https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode.Interpolation` | the kind of interpolation to perform |
| `paramInput: https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode` | input node that produces the parameter value used to interpolate between the start and end inputs |
| `startInput: https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode` | input node that produces the starting value for the interpolation |
| `endInput: https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode` | input node that produces the ending value for the interpolation |

## Public functions

### equals

Cmn

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

Cmn

```
open fun hashCode(): Int
```

### toString

Cmn

```
open fun toString(): String
```

## Public properties

### endInput

Cmn Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

```
val endInput: ValueNode
```

The input node that produces the ending value for the interpolation.

### interpolation

Cmn Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

```
val interpolation: InterpolationNode.Interpolation
```

The kind of interpolation to perform.

### paramInput

Cmn Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

```
val paramInput: ValueNode
```

The input node that produces the parameter value used to interpolate between the start and end inputs.

### startInput

Cmn Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

```
val startInput: ValueNode
```

The input node that produces the starting value for the interpolation.