Security News
Supply Chain Attack Detected in @solana/web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@pixi/filter-fxaa
Advanced tools
@pixi/filter-fxaa is a filter for the PixiJS library that applies Fast Approximate Anti-Aliasing (FXAA) to smooth out the edges of graphics, providing a cleaner and more visually appealing rendering.
Apply FXAA Filter
This feature allows you to apply the FXAA filter to a sprite in a PixiJS application. The code sample demonstrates creating a PixiJS application, adding a sprite, and applying the FXAA filter to smooth out the sprite's edges.
const app = new PIXI.Application();
document.body.appendChild(app.view);
const sprite = PIXI.Sprite.from('path/to/image.png');
app.stage.addChild(sprite);
const fxaaFilter = new PIXI.filters.FXAAFilter();
sprite.filters = [fxaaFilter];
Three.js is a popular 3D library that includes its own implementation of FXAA as part of its post-processing effects. While Three.js is primarily focused on 3D rendering, it offers a broader range of features compared to @pixi/filter-fxaa, which is specifically designed for 2D graphics in PixiJS.
Babylon.js is another 3D engine that provides FXAA as part of its post-processing pipeline. Similar to Three.js, Babylon.js is more focused on 3D rendering, offering a comprehensive suite of tools for 3D graphics, whereas @pixi/filter-fxaa is tailored for 2D applications using PixiJS.
npm install @pixi/filter-fxaa
import '@pixi/filter-fxaa';
FAQs
Filter for fast approximate anti-aliasing
The npm package @pixi/filter-fxaa receives a total of 110,483 weekly downloads. As such, @pixi/filter-fxaa popularity was classified as popular.
We found that @pixi/filter-fxaa demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.