Builder

interface Builder

Collects samples in index order for a timeline of a fixed size. Fill every slot before building.


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

Since

3.7.0

Functions

Link copied to clipboard
abstract fun append(@NotNull vector: @NotNull KeyframeVector)
Writes the next sample.
Link copied to clipboard
@NotNull
abstract fun build(): @NotNull KeyframeTimeline
Returns a timeline backed by the builder's sample storage.