
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@nativescript/canvas-pixi
Advanced tools
npm i three @nativescript/canvas-pixi
<GridLayout width="100%" height="100%">
<canvas:Canvas width="100%" height="100%" id="canvas" ready="onReady"/>
</GridLayout>
import * as PIXI from "pixi.js";
import { TNSPIXIApplication } from "@nativescript/canvas-pixi";
// Create the Application by passing the canvas view object to it
function onReady(args) {
const canvas = args.object;
const app = new TNSPIXIApplication({
canvas,
backgroundColor: 0x1099bb,
});
app.loader.add("bg_grass", "~/assets/images/bg_grass.jpg").load(build);
function build() {
// Create a new texture
const texture = app.loader.resources.bg_grass.texture;
// Create the simple plane
const verticesX = 10;
const verticesY = 10;
const plane = new PIXI.SimplePlane(texture, verticesX, verticesY);
plane.x = 100;
plane.y = 100;
app.stage.addChild(plane);
// Get the buffer for vertice positions.
const buffer = plane.geometry.getBuffer("aVertexPosition") as any;
// Listen for animate update
app.ticker.add((delta) => {
// Randomize the vertice positions a bit to create movement.
for (let i = 0; i < buffer.data.length; i++) {
buffer.data[i] += Math.random() - 0.5;
}
buffer.update();
});
}
}
Apache License Version 2.0, January 2004
FAQs
Plugin for using pixi.js in NativeScript
We found that @nativescript/canvas-pixi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 18 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.