constantBuilder

@NotNull
open fun constantBuilder(size: Int): @NotNull KeyframeTimeline.Builder

Creates a fixed-capacity builder for constant samples. Each sample is evaluated with an empty context when appended.


var builder = KeyframeTimeline.constantBuilder(1);
builder.append(KeyframeVector.ZERO);

Return

the constant timeline builder

Since

3.7.0

Parameters

size

the number of samples. Use a value from zero through Integer.MAX_VALUE / 3

Throws

if the computed component array length is negative