Conversion factor for converting degrees to radians.
Graphics curves resolution settings. If adaptive
flag is set to true
,
the resolution is calculated based on the curve's length to ensure better visual quality.
Adaptive draw works with bezierCurveTo
and quadraticCurveTo
.
Collection of installed resource types, class must extend PIXI.Resource.
Reference to https://github.com/englercj/resource-loader's Resource class.
Two Pi.
Conversion factor for converting radians to degrees.
String of the current PIXI version.
Default property values of accessible objects used by PIXI.AccessibilityManager.
Default filter vertex shader
This namespace contains WebGL-only display filters that can be applied to DisplayObjects using the {@link PIXI.DisplayObject#filters filters} property.
Since PixiJS only had a handful of built-in filters, additional filters can be downloaded here from the PixiJS Filters repository.
All filters must extend PIXI.Filter.
Implements the dihedral group D8, which is similar to group D4; D8 is the same but with diagonals, and it is used for texture rotations.
The directions the U- and V- axes after rotation
of an angle of a: GD8Constant
are the vectors (uX(a), uY(a))
and (vX(a), vY(a))
. These aren't necessarily unit vectors.
Origin:
This is the small part of gameofbombs.com portal system. It works.
Rotation | Direction |
---|---|
0° | East |
Reflection about the main diagonal.
Reflection about X-axis.
Reflection about Y-axis.
Rotation | Direction |
---|---|
-90°/270°↻ | North |
Rotation | Direction |
---|---|
-45°/315°↻ | Northeast |
Rotation | Direction |
---|---|
-135°/225°↻ | Northwest |
Reflection about reverse diagonal.
Rotation | Direction |
---|---|
90°↻ | South |
Rotation | Direction |
---|---|
45°↻ | Southeast |
Rotation | Direction |
---|---|
135°↻ | Southwest |
Rotation | Direction |
---|---|
180° | West |
Composes the two D8 operations.
Taking ^
as reflection:
E=0 | S=2 | W=4 | N=6 | E^=8 | S^=10 | W^=12 | N^=14 | |
---|---|---|---|---|---|---|---|---|
E=0 | E | S | W | N | E^ | S^ | W^ | N^ |
S=2 | S | W | N | E | S^ | W^ | N^ | E^ |
W=4 | W | N | E | S | W^ | N^ | E^ | S^ |
N=6 | N | E | S | W | N^ | E^ | S^ | W^ |
E^=8 | E^ | N^ | W^ | S^ | E | N | W | S |
S^=10 | S^ | E^ | N^ | W^ | S | E | N | W |
W^=12 | W^ | S^ | E^ | N^ | W | S | E | N |
N^=14 | N^ | W^ | S^ | E^ | N | W | S | E |
Second operation, which is the row in the above cayley table.
First operation, which is the column in the above cayley table.
Composed operation
Approximates the vector V(dx,dy)
into one of the
eight directions provided by groupD8
.
X-component of the vector
Y-component of the vector
Approximation of the vector into one of the eight symmetries.
symmetry whose opposite is needed. Only rotations have opposite symmetries while reflections don't.
The opposite symmetry of rotation
Checks if the rotation angle is vertical, i.e. south or north. It doesn't work for reflections.
The number to check.
Whether or not the direction is vertical
Helps sprite to compensate texture packer rotation.
sprite world matrix
The rotation factor to use.
sprite anchoring
sprite anchoring
Adds 180 degrees to rotation, which is a commutative operation.
The number to rotate.
Rotated number
Reverse of add
.
Second operation
First operation
Result
sprite rotation angle.
The X-component of the U-axis after rotating the axes.
sprite rotation angle.
The Y-component of the U-axis after rotating the axes.
sprite rotation angle.
The X-component of the V-axis after rotating the axes.
sprite rotation angle.
The Y-component of the V-axis after rotating the axes.
Default property values of interactive objects Used by PIXI.InteractionManager to automatically give all DisplayObjects these properties
User's customizable globals for overriding the default PIXI settings, such as a renderer's default resolution, framerate, float precision, etc.
This helper function will automatically detect which renderer you should be using. WebGL is the preferred renderer as it is a lot faster. If WebGL is not supported by the browser then this function will return a canvas renderer
Returns WebGL renderer if available, otherwise CanvasRenderer
Create a resource element from a single source element. This
auto-detects which type of resource to create. All resources that
are auto-detectable must have a static test
method and a constructor
with the arguments (source, options?)
. Currently, the supported
resources for auto-detection include:
Resource source, this can be the URL to the resource, a typed-array (for BufferResource), HTMLVideoElement, SVG data-uri or any other resource that can be auto-detected. If not resource is detected, it's assumed to be an ImageResource.
The created resource.
Generated using TypeDoc
Compressed texture extensions