repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/culling/CullerPlugin.ts
src/culling/CullerPlugin.ts
import { ExtensionType } from '../extensions/Extensions'; import { Culler } from './Culler'; import type { ExtensionMetadata } from '../extensions/Extensions'; import type { Renderer } from '../rendering/renderers/types'; import type { Container } from '../scene/container/Container'; /** * Application options for th...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/culling/index.ts
src/culling/index.ts
// Auto-generated code, do not edit manually export * from './Culler'; export * from './CullerPlugin'; export * from './cullingMixin';
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/culling/cullingMixin.ts
src/culling/cullingMixin.ts
import type { Rectangle } from '../maths/shapes/Rectangle'; /** * The CullingMixin interface provides properties and methods for managing culling behavior * of a display object. Culling is the process of determining whether an object should be rendered * based on its visibility within the current view or frame. * ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/culling/__tests__/Culler.test.ts
src/culling/__tests__/Culler.test.ts
import { Application } from '../../app/Application'; import { Culler } from '../Culler'; import { CullerPlugin } from '../CullerPlugin'; import { basePath } from '@test-utils'; import { Assets, loadTextures } from '~/assets'; import { extensions } from '~/extensions'; import { AlphaFilter } from '~/filters'; import { R...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/unsafe-eval/init.ts
src/unsafe-eval/init.ts
import { GlUboSystem } from '../rendering/renderers/gl/GlUboSystem'; import { GlShaderSystem } from '../rendering/renderers/gl/shader/GlShaderSystem'; import { GlUniformGroupSystem } from '../rendering/renderers/gl/shader/GlUniformGroupSystem'; import { GpuUboSystem } from '../rendering/renderers/gpu/GpuUboSystem'; imp...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/unsafe-eval/index.ts
src/unsafe-eval/index.ts
// Auto-generated code, do not edit manually export * from './particle/generateParticleUpdatePolyfill'; export * from './particle/particleUpdateFunctions'; export * from './shader/generateShaderSyncPolyfill'; export * from './ubo/generateUboSyncPolyfill'; export * from './ubo/uboSyncFunctions'; export * from './uniform...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/unsafe-eval/uniforms/uniformSyncFunctions.ts
src/unsafe-eval/uniforms/uniformSyncFunctions.ts
/** * This file is auto generated by scripts/utils/autoGenerateUnsafeEvalFunctions.ts * Do not edit manually - or you will be sad. */ import type { UNIFORM_TYPES } from '../../rendering/renderers/shared/shader/types'; /** @internal */ export type UniformUploadFunction = (name: string, cu: any, cv: any, v: any, ud:...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/unsafe-eval/uniforms/generateUniformsSyncPolyfill.ts
src/unsafe-eval/uniforms/generateUniformsSyncPolyfill.ts
import { uniformParsers } from '../../rendering/renderers/shared/shader/utils/uniformParsers'; import { uniformArrayParserFunctions, uniformParserFunctions, uniformSingleParserFunctions } from './uniformSyncFunctions'; import type { GlUniformData } from '../../rendering/renderers/gl/shader/GlProgram'; import type { We...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/unsafe-eval/particle/particleUpdateFunctions.ts
src/unsafe-eval/particle/particleUpdateFunctions.ts
import type { IParticle } from '../../scene/particle-container/shared/Particle'; /** @internal */ export const particleUpdateFunctions = { aVertex: (ps: IParticle[], f32v: Float32Array, _u32v: Uint32Array, offset: number, stride: number) => { let w0 = 0; let w1 = 0; let h0 = 0; ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/unsafe-eval/particle/generateParticleUpdatePolyfill.ts
src/unsafe-eval/particle/generateParticleUpdatePolyfill.ts
import { getAttributeInfoFromFormat } from '../../rendering/renderers/shared/geometry/utils/getAttributeInfoFromFormat'; import { particleUpdateFunctions } from './particleUpdateFunctions'; import type { IParticle } from '../../scene/particle-container/shared/Particle'; import type { ParticleRendererProperty } from '....
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/unsafe-eval/shader/generateShaderSyncPolyfill.ts
src/unsafe-eval/shader/generateShaderSyncPolyfill.ts
import { BufferResource } from '../../rendering/renderers/shared/buffer/BufferResource'; import { UniformGroup } from '../../rendering/renderers/shared/shader/UniformGroup'; import { TextureSource } from '../../rendering/renderers/shared/texture/sources/TextureSource'; import { TextureStyle } from '../../rendering/rend...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/unsafe-eval/ubo/generateUboSyncPolyfill.ts
src/unsafe-eval/ubo/generateUboSyncPolyfill.ts
import { WGSL_TO_STD40_SIZE } from '../../rendering/renderers/gl/shader/utils/createUboElementsSTD40'; import { WGSL_ALIGN_SIZE_DATA } from '../../rendering/renderers/gpu/shader/utils/createUboElementsWGSL'; import { uniformParsers } from '../../rendering/renderers/shared/shader/utils/uniformParsers'; import { uboParse...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/unsafe-eval/ubo/uboSyncFunctions.ts
src/unsafe-eval/ubo/uboSyncFunctions.ts
/** * This file is auto generated by scripts/utils/autoGenerateUnsafeEvalFunctions.ts * Do not edit manually - or you will be sad. */ import type { UNIFORM_TYPES } from '../../rendering/renderers/shared/shader/types'; /** @internal */ export type UboUploadFunction = (name: string, data: Float32Array, offset: numbe...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/color/index.ts
src/color/index.ts
// Auto-generated code, do not edit manually export * from './Color';
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/color/Color.ts
src/color/Color.ts
import { colord, extend } from '@pixi/colord'; import namesPlugin from '@pixi/colord/plugins/names'; import type { AnyColor, HslaColor, HslColor, HsvaColor, HsvColor, RgbaColor, RgbColor } from '@pixi/colord'; extend([namesPlugin]); /** * Array of RGBA color components, where each component is a number between 0 an...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
true
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/color/__tests__/Color.test.ts
src/color/__tests__/Color.test.ts
import { Color } from '../Color'; import type { ColorSource } from '../Color'; describe('Color', () => { it.concurrent('should throw error for invalid color values', async () => { const invalidColorValues: any[] = [ -1, '', null, false, true,...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/advanced-blend-modes/SoftLightBlend.ts
src/advanced-blend-modes/SoftLightBlend.ts
/* eslint-disable max-len */ import { ExtensionType } from '../extensions/Extensions'; import { BlendModeFilter } from '../filters/blend-modes/BlendModeFilter'; import type { ExtensionMetadata } from '../extensions/Extensions'; /** * The final color is similar to hard-light, but softer. This blend mode behaves simi...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/advanced-blend-modes/SaturationBlend.ts
src/advanced-blend-modes/SaturationBlend.ts
import { ExtensionType } from '../extensions/Extensions'; import { BlendModeFilter } from '../filters/blend-modes/BlendModeFilter'; import { hslgl } from '../filters/blend-modes/hls/GLhls'; import { hslgpu } from '../filters/blend-modes/hls/GPUhls'; import type { ExtensionMetadata } from '../extensions/Extensions'; /...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/advanced-blend-modes/ExclusionBlend.ts
src/advanced-blend-modes/ExclusionBlend.ts
import { ExtensionType } from '../extensions/Extensions'; import { BlendModeFilter } from '../filters/blend-modes/BlendModeFilter'; import type { ExtensionMetadata } from '../extensions/Extensions'; /** * The final color is similar to difference, but with less contrast. * As with difference, a black layer has no ef...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/advanced-blend-modes/DivideBlend.ts
src/advanced-blend-modes/DivideBlend.ts
import { ExtensionType } from '../extensions/Extensions'; import { BlendModeFilter } from '../filters/blend-modes/BlendModeFilter'; import type { ExtensionMetadata } from '../extensions/Extensions'; /** * The Divide blend mode divides the RGB channel values of the bottom layer by those of the top layer. * The darke...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/advanced-blend-modes/init.ts
src/advanced-blend-modes/init.ts
import { extensions } from '../extensions/Extensions'; import { ColorBlend } from './ColorBlend'; import { ColorBurnBlend } from './ColorBurnBlend'; import { ColorDodgeBlend } from './ColorDodgeBlend'; import { DarkenBlend } from './DarkenBlend'; import { DifferenceBlend } from './DifferenceBlend'; import { DivideBlend...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/advanced-blend-modes/PinLightBlend.ts
src/advanced-blend-modes/PinLightBlend.ts
import { ExtensionType } from '../extensions/Extensions'; import { BlendModeFilter } from '../filters/blend-modes/BlendModeFilter'; import type { ExtensionMetadata } from '../extensions/Extensions'; /** * Replaces colors based on the blend color. * * Available as `container.blendMode = 'pin-light'` after importing...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/advanced-blend-modes/VividLightBlend.ts
src/advanced-blend-modes/VividLightBlend.ts
import { ExtensionType } from '../extensions/Extensions'; import { BlendModeFilter } from '../filters/blend-modes/BlendModeFilter'; import type { ExtensionMetadata } from '../extensions/Extensions'; /** * Darkens values darker than 50% gray and lightens those brighter than 50% gray, creating a dramatic effect. * It...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/advanced-blend-modes/ColorBurnBlend.ts
src/advanced-blend-modes/ColorBurnBlend.ts
import { ExtensionType } from '../extensions/Extensions'; import { BlendModeFilter } from '../filters/blend-modes/BlendModeFilter'; import type { ExtensionMetadata } from '../extensions/Extensions'; /** * The final color is the result of inverting the bottom color, dividing the value by the top color, * and inverti...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/advanced-blend-modes/ColorBlend.ts
src/advanced-blend-modes/ColorBlend.ts
import { ExtensionType } from '../extensions/Extensions'; import { BlendModeFilter } from '../filters/blend-modes/BlendModeFilter'; import { hslgl } from '../filters/blend-modes/hls/GLhls'; import { hslgpu } from '../filters/blend-modes/hls/GPUhls'; import type { ExtensionMetadata } from '../extensions/Extensions'; /...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/advanced-blend-modes/ColorDodgeBlend.ts
src/advanced-blend-modes/ColorDodgeBlend.ts
/* eslint-disable max-len */ import { ExtensionType } from '../extensions/Extensions'; import { BlendModeFilter } from '../filters/blend-modes/BlendModeFilter'; import type { ExtensionMetadata } from '../extensions/Extensions'; /** * The final color is the result of dividing the bottom color by the inverse of the t...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/advanced-blend-modes/OverlayBlend.ts
src/advanced-blend-modes/OverlayBlend.ts
import { ExtensionType } from '../extensions/Extensions'; import { BlendModeFilter } from '../filters/blend-modes/BlendModeFilter'; import type { ExtensionMetadata } from '../extensions/Extensions'; /** * The final color is the result of multiply if the bottom color is darker, or screen if the bottom color is lighte...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/advanced-blend-modes/LightenBlend.ts
src/advanced-blend-modes/LightenBlend.ts
import { ExtensionType } from '../extensions/Extensions'; import { BlendModeFilter } from '../filters/blend-modes/BlendModeFilter'; import type { ExtensionMetadata } from '../extensions/Extensions'; /** * The final color is composed of the lightest values of each color channel. * * Available as `container.blendMod...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/advanced-blend-modes/LuminosityBlend.ts
src/advanced-blend-modes/LuminosityBlend.ts
import { ExtensionType } from '../extensions/Extensions'; import { BlendModeFilter } from '../filters/blend-modes/BlendModeFilter'; import { hslgl } from '../filters/blend-modes/hls/GLhls'; import { hslgpu } from '../filters/blend-modes/hls/GPUhls'; import type { ExtensionMetadata } from '../extensions/Extensions'; /...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/advanced-blend-modes/HardLightBlend.ts
src/advanced-blend-modes/HardLightBlend.ts
import { ExtensionType } from '../extensions/Extensions'; import { BlendModeFilter } from '../filters/blend-modes/BlendModeFilter'; import type { ExtensionMetadata } from '../extensions/Extensions'; /** * The final color is the result of multiply if the top color is darker, or screen if the top color is lighter. * ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/advanced-blend-modes/LinearDodgeBlend.ts
src/advanced-blend-modes/LinearDodgeBlend.ts
/* eslint-disable max-len */ import { ExtensionType } from '../extensions/Extensions'; import { BlendModeFilter } from '../filters/blend-modes/BlendModeFilter'; import type { ExtensionMetadata } from '../extensions/Extensions'; /** * Looks at the color information in each channel and brightens the base color to ref...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/advanced-blend-modes/SubtractBlend.ts
src/advanced-blend-modes/SubtractBlend.ts
import { ExtensionType } from '../extensions/Extensions'; import { BlendModeFilter } from '../filters/blend-modes/BlendModeFilter'; import type { ExtensionMetadata } from '../extensions/Extensions'; /** * Subtracts the blend from the base color using each color channel * * Available as `container.blendMode = 'subt...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/advanced-blend-modes/LinearLightBlend.ts
src/advanced-blend-modes/LinearLightBlend.ts
import { ExtensionType } from '../extensions/Extensions'; import { BlendModeFilter } from '../filters/blend-modes/BlendModeFilter'; import type { ExtensionMetadata } from '../extensions/Extensions'; /** * Increase or decrease brightness by burning or dodging color values, based on the blend color * * Available as ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/advanced-blend-modes/HardMixBlend.ts
src/advanced-blend-modes/HardMixBlend.ts
import { ExtensionType } from '../extensions/Extensions'; import { BlendModeFilter } from '../filters/blend-modes/BlendModeFilter'; import type { ExtensionMetadata } from '../extensions/Extensions'; /** * Hard defines each of the color channel values of the blend color to the RGB values of the base color. * If the ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/advanced-blend-modes/index.ts
src/advanced-blend-modes/index.ts
// Auto-generated code, do not edit manually export * from './ColorBlend'; export * from './ColorBurnBlend'; export * from './ColorDodgeBlend'; export * from './DarkenBlend'; export * from './DifferenceBlend'; export * from './DivideBlend'; export * from './ExclusionBlend'; export * from './HardLightBlend'; export * fr...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/advanced-blend-modes/DarkenBlend.ts
src/advanced-blend-modes/DarkenBlend.ts
import { ExtensionType } from '../extensions/Extensions'; import { BlendModeFilter } from '../filters/blend-modes/BlendModeFilter'; import type { ExtensionMetadata } from '../extensions/Extensions'; /** * The final color is composed of the darkest values of each color channel. * * Available as `container.blendMode...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/advanced-blend-modes/LinearBurnBlend.ts
src/advanced-blend-modes/LinearBurnBlend.ts
import { ExtensionType } from '../extensions/Extensions'; import { BlendModeFilter } from '../filters/blend-modes/BlendModeFilter'; import type { ExtensionMetadata } from '../extensions/Extensions'; /** * Looks at the color information in each channel and darkens the base color to * reflect the blend color by incre...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/advanced-blend-modes/DifferenceBlend.ts
src/advanced-blend-modes/DifferenceBlend.ts
import { ExtensionType } from '../extensions/Extensions'; import { BlendModeFilter } from '../filters/blend-modes/BlendModeFilter'; import type { ExtensionMetadata } from '../extensions/Extensions'; /** * The final color is the result of subtracting the darker of the two colors from the lighter one. * black layer h...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/advanced-blend-modes/NegationBlend.ts
src/advanced-blend-modes/NegationBlend.ts
import { ExtensionType } from '../extensions/Extensions'; import { BlendModeFilter } from '../filters/blend-modes/BlendModeFilter'; import type { ExtensionMetadata } from '../extensions/Extensions'; /** * Implements the Negation blend mode which creates an inverted effect based on the brightness values. * * Availa...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/gif/GifAsset.ts
src/gif/GifAsset.ts
import { DOMAdapter } from '../environment/adapter'; import { ExtensionType } from '../extensions/Extensions'; import { path } from '../utils/path'; import { type GifBufferOptions, GifSource } from './GifSource'; import type { AssetExtension } from '../assets/AssetExtension'; /** * Handle the loading of GIF images. ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/gif/GifSource.ts
src/gif/GifSource.ts
import { decompressFrames, type ParsedFrame, parseGIF } from 'gifuct-js'; import { DOMAdapter } from '../environment/adapter'; import { CanvasSource, type CanvasSourceOptions } from '../rendering/renderers/shared/texture/sources/CanvasSource'; import { Texture } from '../rendering/renderers/shared/texture/Texture'; /*...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/gif/init.ts
src/gif/init.ts
import { extensions } from '../extensions/Extensions'; import { GifAsset } from './GifAsset'; export * from './index'; extensions.add(GifAsset);
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/gif/GifSprite.ts
src/gif/GifSprite.ts
import { Texture } from '../rendering/renderers/shared/texture/Texture'; import { Sprite, type SpriteOptions } from '../scene/sprite/Sprite'; import { UPDATE_PRIORITY } from '../ticker/const'; import { Ticker } from '../ticker/Ticker'; import { GifSource } from './GifSource'; import type { SCALE_MODE } from '../render...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/gif/index.ts
src/gif/index.ts
// Auto-generated code, do not edit manually export * from './GifAsset'; export * from './GifSource'; export * from './GifSprite';
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/gif/__tests__/GifAsset.test.ts
src/gif/__tests__/GifAsset.test.ts
import { GifAsset } from '../GifAsset'; import { GifSource } from '../GifSource'; import { basePath, blobToBase64, toArrayBuffer } from '@test-utils'; import { Assets } from '~/assets'; import { extensions } from '~/extensions'; describe('GifSpriteLoader', () => { beforeEach(async () => { extensions.ad...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/gif/__tests__/GifSource.test.ts
src/gif/__tests__/GifSource.test.ts
import { GifSource } from '../GifSource'; import { toArrayBuffer } from '@test-utils'; describe('GifSource', () => { describe('from()', () => { it('should return an instance of GifSprite', () => { const arrayBuffer = toArrayBuffer('gif/example.gif'); const data = GifSour...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/gif/__tests__/GifSprite.test.ts
src/gif/__tests__/GifSprite.test.ts
import { GifSource } from '../GifSource'; import { GifSprite, type GifSpriteOptions } from '../GifSprite'; import { toArrayBuffer } from '@test-utils'; describe('GifSprite', () => { const arrayBuffer = toArrayBuffer('gif/example.gif'); const createAnimation = (options?: Partial<GifSpriteOptions>) => ne...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/spritesheet/init.ts
src/spritesheet/init.ts
import { extensions } from '../extensions/Extensions'; import { spritesheetAsset } from './spritesheetAsset'; extensions.add(spritesheetAsset);
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/spritesheet/spritesheetAsset.ts
src/spritesheet/spritesheetAsset.ts
import { LoaderParserPriority } from '../assets/loader/parsers/LoaderParser'; import { Resolver } from '../assets/resolver/Resolver'; import { copySearchParams } from '../assets/utils/copySearchParams'; import { ExtensionType } from '../extensions/Extensions'; import { Texture } from '../rendering/renderers/shared/text...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/spritesheet/Spritesheet.ts
src/spritesheet/Spritesheet.ts
import { Rectangle } from '../maths/shapes/Rectangle'; import { TextureSource } from '../rendering/renderers/shared/texture/sources/TextureSource'; import { Texture } from '../rendering/renderers/shared/texture/Texture'; import type { PointData } from '../maths/point/PointData'; import type { BindableTexture, TextureB...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/spritesheet/index.ts
src/spritesheet/index.ts
// Auto-generated code, do not edit manually export * from './Spritesheet'; export * from './spritesheetAsset';
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/spritesheet/__tests__/Spritesheet.test.ts
src/spritesheet/__tests__/Spritesheet.test.ts
import path from 'path'; import { Spritesheet } from '../Spritesheet'; import { getAsset } from '@test-utils'; import { ImageSource, Texture } from '~/rendering'; import type { SpritesheetData, SpritesheetFrameData } from '../Spritesheet'; describe('Spritesheet', () => { let assets: string; let validate: (spr...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/spritesheet/__tests__/spritesheetAsset.test.ts
src/spritesheet/__tests__/spritesheetAsset.test.ts
import { Spritesheet } from '../Spritesheet'; import { spritesheetAsset } from '../spritesheetAsset'; import { basePath } from '@test-utils'; import { Cache, Loader, loadJson, loadSvg, loadTextures } from '~/assets'; import { Texture } from '~/rendering'; import type { SpriteSheetJson } from '../spritesheetAsset'; imp...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/prepare/PrepareBase.ts
src/prepare/PrepareBase.ts
import { Container } from '../scene/container/Container'; import { UPDATE_PRIORITY } from '../ticker/const'; import { Ticker } from '../ticker/Ticker'; import type { TextureSource } from '../rendering/renderers/shared/texture/sources/TextureSource'; import type { Texture } from '../rendering/renderers/shared/texture/T...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/prepare/PrepareQueue.ts
src/prepare/PrepareQueue.ts
import { TextureSource } from '../rendering/renderers/shared/texture/sources/TextureSource'; import { Texture } from '../rendering/renderers/shared/texture/Texture'; import { Container } from '../scene/container/Container'; import { Graphics } from '../scene/graphics/shared/Graphics'; import { GraphicsContext } from '....
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/prepare/init.ts
src/prepare/init.ts
import { extensions } from '../extensions/Extensions'; import { PrepareSystem } from './PrepareSystem'; extensions.add(PrepareSystem);
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/prepare/PrepareSystem.ts
src/prepare/PrepareSystem.ts
import { ExtensionType } from '../extensions/Extensions'; import { PrepareUpload } from './PrepareUpload'; import type { System } from '../rendering/renderers/shared/system/System'; /** * The prepare system provides renderer-specific plugins for pre-rendering DisplayObjects. This is useful for * asynchronously prep...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/prepare/PrepareUpload.ts
src/prepare/PrepareUpload.ts
import { TextureSource } from '../rendering/renderers/shared/texture/sources/TextureSource'; import { GraphicsContext } from '../scene/graphics/shared/GraphicsContext'; import { Text } from '../scene/text/Text'; import { BitmapText } from '../scene/text-bitmap/BitmapText'; import { HTMLText } from '../scene/text-html/H...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/prepare/PrepareMixins.d.ts
src/prepare/PrepareMixins.d.ts
declare global { namespace PixiMixins { interface RendererSystems { /** * The prepare mixin provides methods to prepare display objects for rendering. * It is used to ensure that textures and other resources are ready before rendering. * @catego...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/prepare/index.ts
src/prepare/index.ts
// Auto-generated code, do not edit manually export * from './PrepareBase'; export * from './PrepareQueue'; export * from './PrepareSystem'; export * from './PrepareUpload';
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/prepare/__tests__/PrepareSystem.test.ts
src/prepare/__tests__/PrepareSystem.test.ts
import '~/scene/text/init'; import '~/scene/text-bitmap/init'; import '~/scene/text-html/init'; import { PrepareSystem } from '../PrepareSystem'; import { getWebGLRenderer } from '@test-utils'; import { type Renderer, Texture, TextureSource } from '~/rendering'; import { Container, Graphics, Sprite, Text } from '~/scen...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/ticker/TickerListener.ts
src/ticker/TickerListener.ts
import type { Ticker, TickerCallback } from './Ticker'; /** * Internal class for handling the priority sorting of ticker handlers. * @private * @class */ export class TickerListener<T = any> { /** The current priority. */ public priority: number; /** The next item in chain. */ public next: TickerLi...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/ticker/const.ts
src/ticker/const.ts
/** * Represents the update priorities used by internal Pixi classes when registered with * the {@link Ticker} object. Higher priority items are updated first and lower * priority items, such as render, should go later. * @enum {number} * @category ticker * @standard */ export enum UPDATE_PRIORITY { /** ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/ticker/Ticker.ts
src/ticker/Ticker.ts
import { UPDATE_PRIORITY } from './const'; import { TickerListener } from './TickerListener'; /** * A callback which can be added to a ticker. * The callback receives the Ticker instance as its parameter, providing access to timing properties. * @example * ```ts * ticker.add((ticker) => { * // Access deltaTim...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/ticker/index.ts
src/ticker/index.ts
// Auto-generated code, do not edit manually export * from './const'; export * from './Ticker'; export * from './TickerListener';
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/ticker/__tests__/TickerPlugin.test.ts
src/ticker/__tests__/TickerPlugin.test.ts
import { UPDATE_PRIORITY } from '../const'; import { Ticker } from '../Ticker'; import { TickerPlugin } from '~/app'; describe('TickerPlugin', () => { interface App { _ticker?: Ticker; ticker?: Ticker; render?(): void; start?(): void; } let app: App; it('should not ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/ticker/__tests__/Ticker.test.ts
src/ticker/__tests__/Ticker.test.ts
import { setTimeout } from 'timers/promises'; import { UPDATE_PRIORITY } from '../const'; import { Ticker } from '../Ticker'; const { shared, system } = Ticker; describe('Ticker', () => { let length: (ticker?: Ticker) => number; beforeAll(() => { length = (ticker?: Ticker) => { ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/visuals.test.ts
tests/visual/visuals.test.ts
import glob from 'glob'; import path from 'path'; import '~/environment-browser/browserAll'; import { isCI } from '../utils/basePath'; import { renderTest } from './tester'; import { Assets } from '~/assets'; import { TexturePool } from '~/rendering'; import type { RenderType, RenderTypeFlags } from './types'; const ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/tester.ts
tests/visual/tester.ts
import { ensureDirSync, existsSync, readFileSync, writeFile } from 'fs-extra'; import { dirname } from 'path'; import pixelmatch from 'pixelmatch'; import { PNG } from 'pngjs'; import { Rectangle } from '~/maths'; import { autoDetectRenderer } from '~/rendering'; import { Container, Graphics } from '~/scene'; import t...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/types.ts
tests/visual/types.ts
import type { Renderer, RendererOptions } from '~/rendering'; import type { Container } from '~/scene'; export type RenderType = 'webgl1' | 'webgl2' | 'webgpu'; export type RenderTypeFlags = Record<RenderType, boolean>; export interface TestScene { it: string; create: (scene: Container, renderer: Renderer) =>...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/particle/particle.scene.ts
tests/visual/scenes/particle/particle.scene.ts
import { Assets } from '~/assets'; import { Particle, ParticleContainer } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render particle container', create: async (scene: Container) => { const te...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/container/skip-filter.scene.ts
tests/visual/scenes/container/skip-filter.scene.ts
import { ColorMatrixFilter, NoiseFilter } from '~/filters'; import { Container, Graphics } from '~/scene'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should skip filters correctly', create: async (scene: Container) => { const container = new Container({ ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/container/container-origin.scene.ts
tests/visual/scenes/container/container-origin.scene.ts
import { Point } from '~/maths'; import { Container, Graphics } from '~/scene'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should apply origin correctly', options: { width: 256, height: 256, }, create: async (scene: Container) => { ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/container/cache-as-texture.scene.ts
tests/visual/scenes/container/cache-as-texture.scene.ts
import { Container, Text } from '~/scene'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should render cache as texture correctly', create: async (scene: Container) => { const root = new Container(); let last = root; root.x = (128 / 2) - 30;...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/container/root-container-visibility-control.scene.ts
tests/visual/scenes/container/root-container-visibility-control.scene.ts
import { Assets } from '~/assets'; import { Sprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render bunny when root container is visible (control test for GitHub Issue #11122)', create: async (scene: ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/container/container-visibility.scene.ts
tests/visual/scenes/container/container-visibility.scene.ts
import { Texture } from '~/rendering'; import { Sprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; const size = 16; // note: we're using a Sprite since a Container doesn't have a view by default const container = (opts: { tint: number; x: number; ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/container/render-group.scene.ts
tests/visual/scenes/container/render-group.scene.ts
import { Container, Graphics } from '~/scene'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should render renderGroups correctly', create: async (scene: Container) => { const square = new Graphics() .rect(0, 0, 30, 30) .fill('red'); ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/container/cache-as-texture-scale-mode.scene.ts
tests/visual/scenes/container/cache-as-texture-scale-mode.scene.ts
import { Assets } from '~/assets'; import { type SCALE_MODE } from '~/rendering'; import { Container, Sprite } from '~/scene'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should render cache as texture respecting scaleMode', create: async (scene: Container) => { ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/container/display-status-visual.scene.ts
tests/visual/scenes/container/display-status-visual.scene.ts
import { Container } from '../../../../src/scene/container/Container'; import { Graphics } from '../../../../src/scene/graphics/shared/Graphics'; import { Text } from '../../../../src/scene/text/Text'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should demonstrate display ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/container/nested-container.scene.ts
tests/visual/scenes/container/nested-container.scene.ts
import { AlphaFilter } from '~/filters'; import { getCanvasTexture } from '~/rendering'; import { Graphics, Sprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; const canvas = document.createElement('canvas'); canvas.width = 32; canvas.height = 32; const c...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/container/root-container-visibility.scene.ts
tests/visual/scenes/container/root-container-visibility.scene.ts
import { Assets } from '~/assets'; import { Sprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should not render when root container (stage) is invisible - GitHub Issue #11122', create: async (scene: Container...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/container/invisible-stage-test.scene.ts
tests/visual/scenes/container/invisible-stage-test.scene.ts
import { type Container } from '../../../../src/scene/container/Container'; import { Graphics } from '../../../../src/scene/graphics/shared/Graphics'; import { Text } from '../../../../src/scene/text/Text'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should demonstrate sta...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/container/visible-stage-control.scene.ts
tests/visual/scenes/container/visible-stage-control.scene.ts
import { Container } from '../../../../src/scene/container/Container'; import { Graphics } from '../../../../src/scene/graphics/shared/Graphics'; import { Text } from '../../../../src/scene/text/Text'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should demonstrate normal s...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/container/container-swap.scene.ts
tests/visual/scenes/container/container-swap.scene.ts
import { Texture } from '~/rendering'; import { Sprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render swapped children correctly', create: async (scene: Container, renderer) => { const c...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/container/transform.scene.ts
tests/visual/scenes/container/transform.scene.ts
import { Assets } from '~/assets'; import { Container, Sprite } from '~/scene'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should render sprite', create: async (scene: Container) => { scene.enableRenderGroup(); const texture = await Assets.load(`b...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/container/custom-render.scene.ts
tests/visual/scenes/container/custom-render.scene.ts
import { Assets } from '~/assets'; import { RenderContainer, Sprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Renderer } from '~/rendering'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render a custom container GPU code', create: ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/gradient-bug-svg.scene.ts
tests/visual/scenes/graphics/gradient-bug-svg.scene.ts
/* eslint-disable max-len */ import { Graphics } from '../../../../src/scene/graphics/shared/Graphics'; import type { Container } from '../../../../src/scene/container/Container'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'render userSpaceOnUse gradients', create: asy...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/rect.scene.ts
tests/visual/scenes/graphics/rect.scene.ts
import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render rect', create: async (scene: Container) => { const rect = new Graphics().rect(0, 0, 100, 100).fill('red'); scene...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/holes.scene.ts
tests/visual/scenes/graphics/holes.scene.ts
import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should cut holes', create: async (scene: Container) => { const rect = new Graphics() .rect(0, 0, 100, 100) .fil...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/svg-fill-rule-star-nonzero.scene.ts
tests/visual/scenes/graphics/svg-fill-rule-star-nonzero.scene.ts
import { Assets } from '~/assets'; import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container, GraphicsContext } from '~/scene'; export const scene: TestScene = { it: 'should render SVG star with nonzero fill-rule showing solid shape', create: async (scene: Conta...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/rect-stroke-alignment.scene.ts
tests/visual/scenes/graphics/rect-stroke-alignment.scene.ts
import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render text stroke alignment', create: async (scene: Container) => { const rect = new Graphics() .rect(8, 8, 50, 50)...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/graphics-texture.scene.ts
tests/visual/scenes/graphics/graphics-texture.scene.ts
import { Assets } from '~/assets'; import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render rect', create: async (scene: Container) => { const bunnyTexture = await Assets.load('b...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/regular-poly.scene.ts
tests/visual/scenes/graphics/regular-poly.scene.ts
import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render regularPoly correctly', create: async (scene: Container) => { const poly = new Graphics(); poly.regularPoly(0, 0...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/svg-fill-rule-nested-holes.scene.ts
tests/visual/scenes/graphics/svg-fill-rule-nested-holes.scene.ts
import { Assets } from '~/assets'; import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container, GraphicsContext } from '~/scene'; export const scene: TestScene = { it: 'should render SVG with nested holes using evenodd fill-rule', create: async (scene: Container) ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/graphics-fills.scene.ts
tests/visual/scenes/graphics/graphics-fills.scene.ts
import { Assets } from '../../../../src/assets/Assets'; import { Container } from '../../../../src/scene/container/Container'; import { FillGradient } from '../../../../src/scene/graphics/shared/fill/FillGradient'; import { Graphics } from '../../../../src/scene/graphics/shared/Graphics'; import type { TestScene } fro...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/svg-fill-rule-star-evenodd.scene.ts
tests/visual/scenes/graphics/svg-fill-rule-star-evenodd.scene.ts
import { Assets } from '~/assets'; import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container, GraphicsContext } from '~/scene'; export const scene: TestScene = { it: 'should render SVG star with evenodd fill-rule showing hole pattern', create: async (scene: Cont...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/oddsize-polygon.scene.ts
tests/visual/scenes/graphics/oddsize-polygon.scene.ts
import { Container, Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Renderer } from '~/rendering'; export const scene: TestScene = { it: 'should render odd sized polygon correctly', create: async (scene: Container, renderer: Renderer) => { // in this situatio...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/poly.scene.ts
tests/visual/scenes/graphics/poly.scene.ts
import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render polygon correctly', create: async (scene: Container) => { const poly = new Graphics(); poly.poly([{ x: 0, y: 0 }...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/svg.scene.ts
tests/visual/scenes/graphics/svg.scene.ts
/* eslint-disable max-len */ import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render svg graphics paths', create: async (scene: Container) => { const src = ` <svg wi...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/svg-fill-rule-multiple-holes.scene.ts
tests/visual/scenes/graphics/svg-fill-rule-multiple-holes.scene.ts
import { Assets } from '~/assets'; import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container, GraphicsContext } from '~/scene'; export const scene: TestScene = { it: 'should render SVG with multiple holes using evenodd fill-rule', create: async (scene: Container...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false