proguard.gui.splash
Class ShadowedSprite
java.lang.Object
proguard.gui.splash.ShadowedSprite
- All Implemented Interfaces:
- Sprite
- public class ShadowedSprite
- extends Object
- implements Sprite
This Sprite adds a drop shadow to another Sprite.
|
Constructor Summary |
ShadowedSprite(proguard.gui.splash.VariableInt xOffset,
proguard.gui.splash.VariableInt yOffset,
proguard.gui.splash.VariableDouble alpha,
proguard.gui.splash.VariableInt blur,
Sprite sprite)
Creates a new ShadowedSprite. |
|
Method Summary |
void |
paint(Graphics graphics,
long time)
Paints the object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShadowedSprite
public ShadowedSprite(proguard.gui.splash.VariableInt xOffset,
proguard.gui.splash.VariableInt yOffset,
proguard.gui.splash.VariableDouble alpha,
proguard.gui.splash.VariableInt blur,
Sprite sprite)
- Creates a new ShadowedSprite.
- Parameters:
xOffset - the variable x-offset of the shadow, relative to the sprite itself.yOffset - the variable y-offset of the shadow, relative to the sprite itself.alpha - the variable darkness of the shadow (between 0 and 1).blur - the variable blur of the shadow (0 for sharp shadows, 1 or
more for increasingly blurry shadows).sprite - the Sprite to be painted with its shadow.
paint
public void paint(Graphics graphics,
long time)
- Description copied from interface:
Sprite
- Paints the object.
- Specified by:
paint in interface Sprite
- Parameters:
graphics - the Graphics to paint on.time - the time since the start of the animation, expressed in
milliseconds.