Class type Sprite-PIXI._t
inherit PIXI.C.container
method anchor#=: Js.Internal.meth([ `Arity_1(PIXI.ObservablePoint.t) ], unit)The anchor sets the origin point of the text. The default value is taken from the Texture and passed to the constructor. The default is (0,0), this means the text's origin is the top left. Setting the anchor to (0.5,0.5) means the text's origin is centered. Setting the anchor to (1,1) would mean the text's origin point will be the bottom right corner.
method anchor: PIXI.ObservablePoint.tThe anchor sets the origin point of the text. The default value is taken from the Texture and passed to the constructor. The default is (0,0), this means the text's origin is the top left. Setting the anchor to (0.5,0.5) means the text's origin is centered. Setting the anchor to (1,1) would mean the text's origin point will be the bottom right corner.
method blendMode#=: Js.Internal.meth([ `Arity_1(int) ], unit)The blend mode to be applied to the sprite. Apply a value of PIXI.BLEND_MODES.NORMAL to reset the blend mode.
method blendMode: intThe blend mode to be applied to the sprite. Apply a value of PIXI.BLEND_MODES.NORMAL to reset the blend mode.
method pluginName#=: Js.Internal.meth([ `Arity_1(string) ], unit)Plugin that is responsible for rendering this element. Allows to customize the rendering process without overriding '_render' & '_renderCanvas' methods.
method pluginName: stringPlugin that is responsible for rendering this element. Allows to customize the rendering process without overriding '_render' & '_renderCanvas' methods.
method roundPixels#=: Js.Internal.meth([ `Arity_1(bool) ], unit)If true PixiJS will Math.floor() x/y values when rendering, stopping pixel interpolation. Advantages can include sharper image quality (like text) and faster rendering on canvas. The main disadvantage is movement of objects may appear less smooth. To set the global default, change PIXI.settings.ROUND_PIXELS
method roundPixels: boolIf true PixiJS will Math.floor() x/y values when rendering, stopping pixel interpolation. Advantages can include sharper image quality (like text) and faster rendering on canvas. The main disadvantage is movement of objects may appear less smooth. To set the global default, change PIXI.settings.ROUND_PIXELS
method shader#=: Js.Internal.meth([ `Arity_1(Js.t(PIXI.Shader.#_t)) ], unit)The shader that will be used to render the sprite. Set to null to remove a current shader.
method shader: Js.t(PIXI.Shader.#_t)The shader that will be used to render the sprite. Set to null to remove a current shader.
method texture#=: Js.Internal.meth([ `Arity_1(Js.t(PIXI.Texture.#_t)) ], unit)The texture that the sprite is using
method texture: Js.t(PIXI.Texture.#_t)The texture that the sprite is using
method tint#=: Js.Internal.meth([ `Arity_1(int) ], unit)The tint applied to the sprite. This is a hex value. A value of 0xFFFFFF will remove any tint effect.
method tint: intThe tint applied to the sprite. This is a hex value. A value of 0xFFFFFF will remove any tint effect.
method calculateTrimmedVertices: Js.Internal.meth([ `Arity_0 ], unit)calculates worldTransform * vertices for a non texture with a trim. store it in vertexTrimmedData This is used to ensure that the true width and height of a trimmed texture is respected
method calculateVertices: Js.Internal.meth([ `Arity_0 ], unit)calculates worldTransform * vertices, store it in vertexData
method containsPoint: Js.Internal.meth([ `Arity_1(PIXI.Point.t) ], bool)Tests if a point is inside this sprite