Language

InterpolationMode Enum

Definition

public enum InterpolationMode
type InterpolationMode = 
Inheritance
InterpolationMode

Fields

Name Value Description
None 0

No interpolation between control points.

With this interpolation mode, color[n-1] will be held for the corresponding duration specified in delayMillis. After that, color[n] will be applied without any intermediate steps.

Android reference for android.hardware.lights.ColorSequence.INTERPOLATION_MODE_NONE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Linear 1

Linear interpolation between control points.

With this interpolation mode, the transition from color[n-1] to color[n] happens linearly over delayMillis[n] milliseconds, with color updates every frame.

Each color channel is interpolated independently.

Android reference for android.hardware.lights.ColorSequence.INTERPOLATION_MODE_LINEAR.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to