KeyFade¶
namespace GameSense.Animation
public class KeyFade : IKeyAnimator
An IKeyAnimator
that animates a fading color for keys.
Summary¶
Constructors¶
Constructor |
---|
KeyFade () |
Properties¶
public
¶
Type | Property | Get | Set |
---|---|---|---|
int |
FadeDuration |
||
int[] |
Color |
Inherited properties from IKeyAnimator
¶
Type | Property | Get | Set |
---|---|---|---|
bool |
Finished |
||
Key |
Key |
Implemented methods from IKeyAnimator
¶
Returns | Method |
---|---|
IKeyAnimator |
Copy () |
Implemented methods from IKeyboardAnimator
¶
Returns | Method |
---|---|
KeyboardFrame |
NextFrame ( KeyboardFrame bottomLayer) |
Constructors¶
KeyFade
¶
public KeyFade()
Initializes a new instance of the class.
Properties¶
FadeDuration¶
Source · Default: 100
public int FadeDuration {set;}
Sets amount of [IKeyboardAnimator.NextFrame()
] calls the key needs to fade out. Time dependents on the Controller.FrameLength
.
Color¶
Source · Default: [255, 255, 255]
public int[] Color {set;}
Sets the color that should fade away.