Classes
AddedRemovedEvent
AlertElement
AnchorContainerElement
ArrowShape
ButtonElement
CanvasElement
CanvasManager
CheckboxElement
CheckboxSkinElement
CollectionChangedEvent
CollectionSort
ColorPickerButtonElement
ColorPickerElement
ContainerBaseElement
CursorDefinition
DataGridColumnDefinition
DataGridDataRenderer
DataGridElement
DataGridHeaderColumnDividerSkinElement
DataGridHeaderElement
DataGridHeaderItemRenderer
DataGridItemData
DataGridItemRendererBase
DataGridLabelItemRenderer
DataListData
DataListElement
DataRendererBaseElement
DataRendererLabelElement
DatePickerButtonElement
DatePickerElement
DispatcherEvent
DrawMetrics
DropdownArrowButtonSkinElement
DropdownBaseElement
DropdownElement
ElementEvent
ElementGridItemClickEvent
ElementKeyboardEvent
ElementListItemClickEvent
ElementMouseEvent
ElementMouseWheelEvent
EllipseShape
EventDispatcher
FillBase
GridContainerElement
GridContainerRowColumnDefinition
ImageElement
IpInputElement
LabelElement
LinearGradientFill
ListCollection
ListContainerElement
ProgressElement
RadioButtonElement
RadioButtonSkinElement
RoundedRectangleShape
ScrollBarElement
ScrollButtonSkinElement
ShapeBase
SkinnableElement
SolidFill
StyleableBase
StyleChangedEvent
StyleData
StyleDefinition
StyleProxy
TextAreaElement
TextElement
TextFieldElement
TextInputElement
TimeInputElement
ToggleButtonElement
ToggleButtonGroup
Tween
ViewportElement


Tween

Tween is a helper class that is used to interpolate values
across a given time span and is essentially just a calculator.
It can be used for nearly any type of animation and supports
easing for acceleration and deceleration.
If you're unsure about easing, a hint is that SineInOut is a kind of magic salt
you can sprinkle on just about any linear animation that usually makes everything
look smoother and less jarring without being obvious.

Inheritance:     Tween ➞ Object

Public Members
Member Defined By
duration     :    Number Tween
Duration in milliseconds the tween will run.
 
easingFunction     :    Function Tween
Easing function to use when calculating the tween value. This is used
to create acceleration/deceleration. Setting this to null will result
in a linear tween. This is a function that accepts a fraction
between 0 and 1 and returns a fraction between 0 and 1. The result is used
to calculate the value based on progress and start/end values. There are several
standard easing functions built in as static functions of Tween that you can set to this.
 
endVal     :    Number Tween
Ending value at the end time of the tween duration.
 
startTime     :    Number Tween
Time in milliseconds that the tween should start as returned by Date.now().
 
startVal     :    Number Tween
Beginning value at the start time of the tween.
 


Public Functions
Function Defined By
Tween() [Constructor] Tween
Creates new Tween instance.
 
easeInCubic(fraction) [Static] Tween
Use for cubic easing.
  fraction     :    Number
A number between 0 and 1.
  returns     :    Number
A number between 0 and 1.
 
easeInOutCubic(fraction) [Static] Tween
Use for cubic easing.
  fraction     :    Number
A number between 0 and 1.
  returns     :    Number
A number between 0 and 1.
 
easeInOutQuad(fraction) [Static] Tween
Use for quadratic easing.
  fraction     :    Number
A number between 0 and 1.
  returns     :    Number
A number between 0 and 1.
 
easeInOutSine(fraction) [Static] Tween
Use for sine easing.
  fraction     :    Number
A number between 0 and 1.
  returns     :    Number
A number between 0 and 1.
 
easeInQuad(fraction) [Static] Tween
Use for quadratic easing.
  fraction     :    Number
A number between 0 and 1.
  returns     :    Number
A number between 0 and 1.
 
easeInSine(fraction) [Static] Tween
Use for sine easing.
  fraction     :    Number
A number between 0 and 1.
  returns     :    Number
A number between 0 and 1.
 
easeOutCubic(fraction) [Static] Tween
Use for cubic easing.
  fraction     :    Number
A number between 0 and 1.
  returns     :    Number
A number between 0 and 1.
 
easeOutQuad(fraction) [Static] Tween
Use for quadratic easing.
  fraction     :    Number
A number between 0 and 1.
  returns     :    Number
A number between 0 and 1.
 
easeOutSine(fraction) [Static] Tween
Use for sine easing.
  fraction     :    Number
A number between 0 and 1.
  returns     :    Number
A number between 0 and 1.
 
getProgress(time) Tween
Gets the current progress of the tween based on the start time and the current time.
  time     :    Number
The current time as returned by Date.now().
  returns     :    Number
Fraction between 0 and 1.
 
getValue(time) Tween
Gets the current value based on the supplied time.
  time     :    Number
The current time as returned by Date.now().
  returns     :    Number
A number between the start and end values (inclusive).