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 movingLayer
s comprised of other widgets whose positions and rotations correlate to either a pointer data or sensors data.- This distinction is made by
XLayer
vsPLayer
- Whether the input methods cross-mingle is controlled by flag
- This distinction is made by
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 Widget
s 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 anXL
. These by themselves are notWidget
s. - AutoXL
-
Deploy an
AutoXL
to simplify the setup of an XL stack. - Compensation
-
A small abstract class with
static
constantList<double>
s that refer to specific device orientations according to sensor data subtractions/compensations. - Dragging
-
A parameter class that pertains to
PLayer
s and their parallax animation during an active drag or pointer hover event. - Normalization
-
A parameter class that primarily pertain to
XLayer
s for customizing the intake ofSensorEvent
data. - ParallaxLayer
-
A
Layer
in anXL
. These by themselves are notWidget
s. - ParallaxStack
-
A
Widget
that allows the definition of a stack ofXLayer
s and/orPLayer
s and that will intrinsically animate them with a parallax effect based on sensor events (X
) or pointer data (P
). - PLayer
-
A
Layer
in anXL
. These by themselves are notWidget
s. - ReferencePosition
-
A simple wrapper for the
x
&y
values of theXL
's reference position as doubles between0..1
. - XL
-
A
Widget
that allows the definition of a stack ofXLayer
s and/orPLayer
s and that will intrinsically animate them with a parallax effect based on sensor events (X
) or pointer data (P
). - XLayer
-
A
Layer
in anXL
. These by themselves are notWidget
s.