Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pixi/particle-container

Package Overview
Dependencies
Maintainers
2
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/particle-container - npm Package Compare versions

Comparing version 7.1.2 to 7.2.0-beta

2

lib/ParticleContainer.js

@@ -48,3 +48,3 @@ 'use strict';

this._tint = value;
core.utils.hex2rgb(value, this.tintRgb);
core.Color.shared.setValue(value).toRgbArray(this.tintRgb);
}

@@ -51,0 +51,0 @@ render(renderer) {

@@ -75,3 +75,3 @@ 'use strict';

this.shader.uniforms.translationMatrix = m.toArray(true);
this.shader.uniforms.uColor = core.utils.premultiplyRgba(container.tintRgb, container.worldAlpha, this.shader.uniforms.uColor, premultiplied);
this.shader.uniforms.uColor = core.Color.shared.setValue(container.tintRgb).premultiply(container.worldAlpha, premultiplied).toArray(this.shader.uniforms.uColor);
this.shader.uniforms.uSampler = baseTexture;

@@ -202,9 +202,7 @@ this.renderer.shader.bind(this.shader);

const sprite = children[startIndex + i];
const premultiplied = sprite._texture.baseTexture.alphaMode > 0;
const alpha = sprite.alpha;
const argb = alpha < 1 && premultiplied ? core.utils.premultiplyTint(sprite._tintRGB, alpha) : sprite._tintRGB + (alpha * 255 << 24);
array[offset] = argb;
array[offset + stride] = argb;
array[offset + stride * 2] = argb;
array[offset + stride * 3] = argb;
const result = core.Color.shared.setValue(sprite._tintRGB).toPremultiplied(sprite.alpha);
array[offset] = result;
array[offset + stride] = result;
array[offset + stride * 2] = result;
array[offset + stride * 3] = result;
offset += stride * 4;

@@ -211,0 +209,0 @@ }

{
"name": "@pixi/particle-container",
"version": "7.1.2",
"version": "7.2.0-beta",
"main": "lib/index.js",

@@ -42,4 +42,3 @@ "module": "lib/index.mjs",

"@pixi/sprite"
],
"gitHead": "27e65c73bb36a06fd00d6da5bf460bbee9f6c984"
]
}

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc