{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

ColorVectorConverterKt

public final class ColorVectorConverterKt


Summary

Public methods

static final @NonNull Function1<@NonNull ColorSpace, @NonNull TwoWayConverter<@NonNull Color, @NonNull 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.

Public methods

getVectorConverter

public static final @NonNull Function1<@NonNull ColorSpace, @NonNull TwoWayConverter<@NonNull Color, @NonNull AnimationVector4D>> getVectorConverter(@NonNull Color.Companion receiver)

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.