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.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
ResourceAnimationFrame | of(int[] pixels, long duration) factory | Creates a frame of pixels, 0xAARRGGBB values of the whole animation size, shown for duration milliseconds. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
int[] | getPixels() | Returns the pixels of the frame. |
long | getDuration() | Returns how long the frame shows, in milliseconds. |
Creation details
Section titled “Creation details”ResourceAnimationFrame of(int[] pixels, long duration) factory
Creates a frame of pixels, 0xAARRGGBB values of the whole animation size, shown for duration milliseconds.
Method details
Section titled “Method details”getPixels
Section titled “getPixels”int[] getPixels()
Returns the pixels of the frame.
getDuration
Section titled “getDuration”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
