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

@pixi/app

Package Overview
Dependencies
Maintainers
3
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/app

Convenience class to create a new PixiJS application

  • 7.0.0-alpha
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created

What is @pixi/app?

@pixi/app is a part of the PixiJS library, which is a fast, lightweight 2D rendering engine for creating interactive graphics and animations in the browser. The @pixi/app package specifically provides the core functionality to create and manage the main application instance, including the renderer, ticker, and stage.

What are @pixi/app's main functionalities?

Creating an Application

This feature allows you to create a new PixiJS application with specified width and height. The application instance includes a renderer, ticker, and stage, and appends the canvas element to the document body.

const app = new PIXI.Application({ width: 800, height: 600 }); document.body.appendChild(app.view);

Adding Sprites

This feature allows you to add sprites to the stage. You can create a sprite from an image path and add it to the application's stage for rendering.

const sprite = PIXI.Sprite.from('path/to/image.png'); app.stage.addChild(sprite);

Handling Animation

This feature allows you to handle animations using the application's ticker. You can add a function to the ticker that updates the properties of objects on each frame, such as rotating a sprite.

app.ticker.add((delta) => { sprite.rotation += 0.01 * delta; });

Other packages similar to @pixi/app

FAQs

Package last updated on 09 Sep 2022

Did you know?

Socket

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.

Install

Related posts

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