Module Sprite-PIXI.Impl
let create: PIXI.Texture.t => t;let getAnchor: Js.t(_t) => PIXI.ObservablePoint.t;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.
let setAnchor: Js.t(_t) => 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.
let _getBlendMode: Js.t(_t) => int;
let getBlendMode: Js.t(_t) => PIXI.BLEND_MODES.t;The blend mode to be applied to the sprite. Apply a value of PIXI.BLEND_MODES.NORMAL to reset the blend mode.
let _setBlendMode: Js.t(_t) => int => unit;
let setBlendMode: Js.t(_t) => PIXI.BLEND_MODES.t => unit;The blend mode to be applied to the sprite. Apply a value of PIXI.BLEND_MODES.NORMAL to reset the blend mode.
let getPluginName: Js.t(_t) => string;Plugin that is responsible for rendering this element. Allows to customize the rendering process without overriding '_render' & '_renderCanvas' methods.
let setPluginName: Js.t(_t) => string => unit;Plugin that is responsible for rendering this element. Allows to customize the rendering process without overriding '_render' & '_renderCanvas' methods.
let getRoundPixels: Js.t(_t) => bool;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
let setRoundPixels: Js.t(_t) => 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
let getShader: Js.t(_t) => Js.t(PIXI.Shader.#_t);The shader that will be used to render the sprite. Set to null to remove a current shader.
let setShader: Js.t(_t) => Js.t(PIXI.Shader.#_t) => unit;The shader that will be used to render the sprite. Set to null to remove a current shader.
let getTexture: Js.t(_t) => Js.t(PIXI.Texture.#_t);The texture that the sprite is using
let setTexture: Js.t(_t) => Js.t(PIXI.Texture.#_t) => unit;The texture that the sprite is using
let getTint: Js.t(_t) => int;The tint applied to the sprite. This is a hex value. A value of 0xFFFFFF will remove any tint effect.
let setTint: Js.t(_t) => int => unit;The tint applied to the sprite. This is a hex value. A value of 0xFFFFFF will remove any tint effect.
let calculateTrimmedVertices: Js.t(_t) => 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
let calculateVertices: Js.t(_t) => unit;calculates worldTransform * vertices, store it in vertexData
let containsPoint: Js.t(_t) => PIXI.Point.t => bool;Tests if a point is inside this sprite