xl library

A package that provides the XL widget to implement accelerometer and/or pointer and touch fueled parallax animations that smoothly transform their children according to a spatial, three-dimensional parallax layer definition.

  • The XL Stack can generate fluidly moving Layers comprised of other widgets whose positions and rotations correlate to either a pointer data or sensors data.
    • This distinction is made by XLayer vs PLayer
    • Whether the input methods cross-mingle is controlled by flag
XL.sharesPointer // default is true; shares pointer with XLayers
XL.sharesSensors // default is false; does not share sensors with PLayers

Also consider an AutoXL which makes a parallax stack even easier to implement.
Simply provide any old Widgets as layers
and optionally tinker with the depthFactor or max layer depth.

  • Pre-configured: AutoXL.pane, AutoXL.wiggler, AutoXL.deep

Classes

AcceleraxLayer
A Layer in an XL. These by themselves are not Widgets.
AutoXL
Deploy an AutoXL to simplify the setup of an XL stack.
Compensation
A small abstract class with static constant List<double>s that refer to specific device orientations according to sensor data subtractions/compensations.
Dragging
A parameter class that pertains to PLayers and their parallax animation during an active drag or pointer hover event.
Normalization
A parameter class that primarily pertain to XLayers for customizing the intake of SensorEvent data.
ParallaxLayer
A Layer in an XL. These by themselves are not Widgets.
ParallaxStack
A Widget that allows the definition of a stack of XLayers and/or PLayers and that will intrinsically animate them with a parallax effect based on sensor events (X) or pointer data (P).
PLayer
A Layer in an XL. These by themselves are not Widgets.
ReferencePosition
A simple wrapper for the x & y values of the XL's reference position as doubles between 0..1.
XL
A Widget that allows the definition of a stack of XLayers and/or PLayers and that will intrinsically animate them with a parallax effect based on sensor events (X) or pointer data (P).
XLayer
A Layer in an XL. These by themselves are not Widgets.