@pixi/particle-container
Advanced tools
Comparing version 7.2.0-beta to 7.2.0-beta.2
import { BLEND_MODES } from '@pixi/core'; | ||
import { Container } from '@pixi/display'; | ||
import type { BaseTexture, Renderer } from '@pixi/core'; | ||
import type { BaseTexture, ColorSource, Renderer } from '@pixi/core'; | ||
import type { IDestroyOptions } from '@pixi/display'; | ||
@@ -91,3 +91,3 @@ import type { Sprite } from '@pixi/sprite'; | ||
*/ | ||
private _tint; | ||
private _tintColor; | ||
/** | ||
@@ -120,4 +120,4 @@ * @param maxSize - The maximum number of particles that can be rendered by the container. | ||
*/ | ||
get tint(): number; | ||
set tint(value: number); | ||
get tint(): ColorSource; | ||
set tint(value: ColorSource); | ||
/** | ||
@@ -124,0 +124,0 @@ * Renders the container using the WebGL renderer. |
@@ -27,4 +27,4 @@ 'use strict'; | ||
this.setProperties(properties); | ||
this._tint = 0; | ||
this.tintRgb = new Float32Array(4); | ||
this._tintColor = new core.Color(0); | ||
this.tintRgb = new Float32Array(3); | ||
this.tint = 16777215; | ||
@@ -45,7 +45,7 @@ } | ||
get tint() { | ||
return this._tint; | ||
return this._tintColor.value; | ||
} | ||
set tint(value) { | ||
this._tint = value; | ||
core.Color.shared.setValue(value).toRgbArray(this.tintRgb); | ||
this._tintColor.setValue(value); | ||
this._tintColor.toRgbArray(this.tintRgb); | ||
} | ||
@@ -52,0 +52,0 @@ render(renderer) { |
{ | ||
"name": "@pixi/particle-container", | ||
"version": "7.2.0-beta", | ||
"version": "7.2.0-beta.2", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "module": "lib/index.mjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
149462