Class MilkIntro
java.lang.Object
wiiuu.ui.MilkIntro
A reusable chocolate-milk intro: a glass drops in, syrup pours in, a straw lands and the
host application's title appears letter by letter. It fades out after 3.5 seconds.
The host owns repaint scheduling, the underlying screen and any input that skips the intro.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStart an intro now, with the host application's title and tagline.Start at an explicit timestamp, for deterministic rendering or a host animation clock. -
Method Summary
Modifier and TypeMethodDescriptionfloatcover(long now) How much of the intro covers the list (1, then fading to 0 at the end).booleandone(long now) voidpaint(Graphics2D graphics, int w, int h, long now) Paint without changing the caller's graphics state.
-
Field Details
-
LENGTH
public static final long LENGTH- See Also:
-
-
Constructor Details
-
MilkIntro
-
MilkIntro
-
-
Method Details
-
done
public boolean done(long now) -
cover
public float cover(long now) How much of the intro covers the list (1, then fading to 0 at the end). -
paint
Paint without changing the caller's graphics state. The host schedules repaints and skipping.
-