Skip to content

ResourceAnimationFrame

final class ResourceAnimationFrame
Package: dev.joid.lib.resource.animation · Module: core · Source: ResourceAnimationFrame.java

One full image of an animation and how long it shows.

ReturnsSignatureSummary
ResourceAnimationFrameof(int[] pixels, long duration) factoryCreates a frame of pixels, 0xAARRGGBB values of the whole animation size, shown for duration milliseconds.

ReturnsSignatureSummary
int[]getPixels()Returns the pixels of the frame.
longgetDuration()Returns how long the frame shows, in milliseconds.

ResourceAnimationFrame of(int[] pixels, long duration) factory

Creates a frame of pixels, 0xAARRGGBB values of the whole animation size, shown for duration milliseconds.

int[] getPixels()

Returns the pixels of the frame.

long getDuration()

Returns how long the frame shows, in milliseconds.


fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses

Report a problem with this page