---
title: "VectorConverter"
description: "A lambda that takes a [ColorSpace] and returns a converter that can both convert a [Color] to a
[AnimationVector4D], and convert a [AnimationVector4D]) back to a [Color] in the given
[ColorSpace]."
type: "property"
---

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


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

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


```kotlin
public val Color.Companion.VectorConverter:
(colorSpace: ColorSpace) -> TwoWayConverter<Color, AnimationVector4D>
```


A lambda that takes a `ColorSpace` and returns a converter that can both convert a `Color` to a
`AnimationVector4D`, and convert a `AnimationVector4D`) back to a `Color` in the given
`ColorSpace`.



