Socket
Socket
Sign inDemoInstall

@pixi/settings

Package Overview
Dependencies
3
Maintainers
2
Versions
118
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/settings


Version published
Maintainers
2
Install size
221 kB
Created

Package description

What is @pixi/settings?

@pixi/settings is a configuration utility for the PixiJS library, which is a popular 2D rendering engine for creating interactive graphics and animations in web applications. This package allows developers to customize and manage various settings related to rendering, performance, and other aspects of the PixiJS engine.

What are @pixi/settings's main functionalities?

Setting Resolution

This feature allows you to set the resolution of the renderer. Higher resolutions can provide better visual quality but may impact performance.

const { settings } = require('@pixi/settings');
settings.RESOLUTION = 2;

Setting Background Color

This feature allows you to set the background color of the renderer. The color is specified in hexadecimal format.

const { settings } = require('@pixi/settings');
settings.BACKGROUND_COLOR = 0x1099bb;

Setting Max Texture Size

This feature allows you to set the maximum texture size that the renderer can handle. This is useful for optimizing performance and ensuring compatibility with different devices.

const { settings } = require('@pixi/settings');
settings.MAX_TEXTURE_SIZE = 4096;

Other packages similar to @pixi/settings

Readme

Source

@pixi/settings

Installation

npm install @pixi/settings

Usage

import { settings } from '@pixi/settings';

FAQs

Last updated on 02 Mar 2023

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc