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/tests/visual/scenes/graphics/graphics-pixel-line.scene.ts
tests/visual/scenes/graphics/graphics-pixel-line.scene.ts
import { Graphics } 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 pixel line correctly', create: async (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/graphics/svg-graphics-context.scene.ts
tests/visual/scenes/graphics/svg-graphics-context.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 a GraphicsContext texture', 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/color-alpha.scene.ts
tests/visual/scenes/graphics/color-alpha.scene.ts
import { Color } from '~/color'; import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render alpha from a Color', create: async (scene: Container) => { const rect = new Graphics().r...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/graphics-blend.scene.ts
tests/visual/scenes/graphics/graphics-blend.scene.ts
import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should set blend of graphics correctly', create: async (scene: Container) => { const rect = new Graphics().rect(0, 0, 100, 100).fill('r...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/rect-fills-compare.scene.ts
tests/visual/scenes/graphics/rect-fills-compare.scene.ts
import { basePath } from '@test-utils'; import { Assets } from '~/assets'; import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Texture } from '~/rendering'; import type { Container, TextureSpace } from '~/scene'; export const scene: TestScene = { it: 'should render rect...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/v7-compatibility-complex.scene.ts
tests/visual/scenes/graphics/v7-compatibility-complex.scene.ts
import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should graphics with v7 backwards compatible api', create: async (scene: Container) => { const graphics = new Graphics(); // s...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/circle-black.scene.ts
tests/visual/scenes/graphics/circle-black.scene.ts
import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should correctly render a black circle', create: async (scene: Container) => { const graphics1 = new Graphics() .circle(0, ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/lines-arc.scene.ts
tests/visual/scenes/graphics/lines-arc.scene.ts
import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should continue drawing from next point of path', create: async (scene: Container) => { const lines = new Graphics(); let segm...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/graphics-gradients.scene.ts
tests/visual/scenes/graphics/graphics-gradients.scene.ts
import { Container, Graphics } from '~/scene'; import { FillGradient } from '~/scene/graphics/shared/fill/FillGradient'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should render gradients rects', create: async (scene: Container) => { const width = 360; ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/graphics-tint.scene.ts
tests/visual/scenes/graphics/graphics-tint.scene.ts
import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should set tint of graphics correctly', create: async (scene: Container) => { const rect = new Graphics().rect(0, 0, 100, 100).fill('bl...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/shared-context.scene.ts
tests/visual/scenes/graphics/shared-context.scene.ts
import { Graphics, GraphicsContext } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render graphics with shared context', create: async (scene: Container) => { const context = new GraphicsContext...
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.scene.ts
tests/visual/scenes/graphics/rect-stroke.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', create: async (scene: Container) => { const rect = new Graphics().rect(4, 4, 50, 50).fill('red').stroke({ ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/bezier.scene.ts
tests/visual/scenes/graphics/bezier.scene.ts
import { Container, Graphics } from '~/scene'; import type { TestScene } from '../../types'; function drawCurve( root: Container, x: number, y: number, width: number, height: number, smoothness: number, thickness: number, ) { const startX = x; const startY = y + height; const e...
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-comparison.scene.ts
tests/visual/scenes/graphics/svg-fill-rule-comparison.scene.ts
import { Assets } from '~/assets'; import { type Container, Graphics, type GraphicsContext } from '~/scene'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should render SVG fill-rule comparison showing evenodd vs nonzero behaviors', 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-tile.scene.ts
tests/visual/scenes/graphics/graphics-tile.scene.ts
import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Renderer } from '~/rendering'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should tile a texture correctly', create: async (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/graphics/rect-fills-compare-gradients.scene.ts
tests/visual/scenes/graphics/rect-fills-compare-gradients.scene.ts
import { FillGradient } from '../../../../src/scene/graphics/shared/fill/FillGradient'; import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container, TextureSpace } from '~/scene'; export const scene: TestScene = { it: 'should render rects with fills using gradients', ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/svg-texture.scene.ts
tests/visual/scenes/graphics/svg-texture.scene.ts
import { Assets } from '~/assets'; import { Sprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Texture } from '~/rendering'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render svg as texture', 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/circle.scene.ts
tests/visual/scenes/graphics/circle.scene.ts
import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render circles', create: async (scene: Container) => { const circle = new Graphics(); circle .moveTo(32, 32...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/earcut.scene.ts
tests/visual/scenes/graphics/earcut.scene.ts
import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render circles', create: async (scene: Container) => { let yOffset = 0; function drawShape(step: number, color: string,...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/extras.scene.ts
tests/visual/scenes/graphics/extras.scene.ts
import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render regular/rounded polygons, fillet/chamfer rects', create: async (scene: Container) => { const rect = new Graphics() ...
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-nonzero-basic.scene.ts
tests/visual/scenes/graphics/svg-fill-rule-nonzero-basic.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 nonzero fill-rule with solid shape (no holes when same winding)', 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/two-circles.scene.ts
tests/visual/scenes/graphics/two-circles.scene.ts
import { Graphics, Sprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should correctly swap bind groups and render to non batched circles with a sprite in the middle', 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/circle-clone.scene.ts
tests/visual/scenes/graphics/circle-clone.scene.ts
import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render cloned circles', create: async (scene: Container) => { const circle = new Graphics(); circle .circle...
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-evenodd-basic.scene.ts
tests/visual/scenes/graphics/svg-fill-rule-evenodd-basic.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 evenodd fill-rule with inner path first (fixes subpath order dependency)', cr...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/graphics-fill-cut-fill-cut.scene.ts
tests/visual/scenes/graphics/graphics-fill-cut-fill-cut.scene.ts
import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render fill, cut, fill, cut.', create: async (scene: Container) => { const rectsWithHoles = new Graphics() .rect(0, ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/v7-compatibility-simple.scene.ts
tests/visual/scenes/graphics/v7-compatibility-simple.scene.ts
import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should graphics with v7 backwards compatible api', create: async (scene: Container) => { const graphics = new Graphics(); // R...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/rect-fills.scene.ts
tests/visual/scenes/graphics/rect-fills.scene.ts
import { basePath } from '@test-utils'; import { Assets } from '~/assets'; import { Matrix } from '~/maths'; import { FillGradient, Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Texture } from '~/rendering'; import type { Container } from '~/scene'; export const scene: TestSce...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/graphics/gradient-svg.scene.ts
tests/visual/scenes/graphics/gradient-svg.scene.ts
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: 'should svg gradients correctly', 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/mask/mask-out-of-viewport.scene.ts
tests/visual/scenes/mask/mask-out-of-viewport.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 masked sprite, when mask is out of viewport bounds', 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/mask/alpha-inverse-mask.scene.ts
tests/visual/scenes/mask/alpha-inverse-mask.scene.ts
import { Assets } from '~/assets'; import { Color } from '~/color'; import { Graphics, Sprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render inverse alpha mask', 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/mask/trimed-sprite-mask.scene.ts
tests/visual/scenes/mask/trimed-sprite-mask.scene.ts
import { Assets } from '~/assets'; import { Color } from '~/color'; import { Rectangle } from '~/maths'; import { Texture } from '~/rendering'; import { Graphics, Sprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/mask/stencil-inverse-mask.scene.ts
tests/visual/scenes/mask/stencil-inverse-mask.scene.ts
import { Color } from '~/color'; import { Container, Graphics } from '~/scene'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should render inverse stencil mask', create: async (scene: Container) => { const container = new Container(); const rect1 = ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/mask/nested-mask.scene.ts
tests/visual/scenes/mask/nested-mask.scene.ts
import { Assets } from '~/assets'; import { Container, Graphics, Sprite } from '~/scene'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should nested masks correctly', create: async (scene: Container) => { const innerMask = new Graphics().rect(0, 0, 100, 100)...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/mask/circle-mask.scene.ts
tests/visual/scenes/mask/circle-mask.scene.ts
import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render circle mask correctly', create: async (scene: Container) => { const rect = new Graphics() .rect(0, 0, 128, 12...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/mask/stencil-mask.scene.ts
tests/visual/scenes/mask/stencil-mask.scene.ts
import { Color } from '~/color'; import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render stencil mask', create: async (scene: Container) => { const rect = new Graphics() ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/mask/alpha-mask.scene.ts
tests/visual/scenes/mask/alpha-mask.scene.ts
import { Color } from '~/color'; import { Texture } from '~/rendering'; import { Graphics, Sprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render alpha mask', 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/mask/layer-mask.scene.ts
tests/visual/scenes/mask/layer-mask.scene.ts
import { Container, Graphics } from '~/scene'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should render masks if they have multiple layers correctly', create: async (scene: Container) => { const wrapper = new Container(); const width = 128 - 20; ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/mask/stencil-nested-render-group.scene.ts
tests/visual/scenes/mask/stencil-nested-render-group.scene.ts
import { AlphaFilter } from '~/filters'; import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should handle nested masks in render group correctly', create: async (scene: Container) => { c...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/mask/alpha-mask-cache-as-texture.scene.ts
tests/visual/scenes/mask/alpha-mask-cache-as-texture.scene.ts
import { Assets } from '~/assets'; import { Point } from '~/maths'; import { Container, Sprite } from '~/scene'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should render alpha mask with cache as texture', create: async (scene: Container) => { const texture...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/scene/render-layer.scene.ts
tests/visual/scenes/scene/render-layer.scene.ts
import { Graphics } from '../../../../src/scene/graphics/shared/Graphics'; import { RenderLayer } from '../../../../src/scene/layers/RenderLayer'; import type { Container } from '../../../../src/scene/container/Container'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/scene/alpha-tint.scene.ts
tests/visual/scenes/scene/alpha-tint.scene.ts
import { Container, Graphics, GraphicsContext } from '~/scene'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should alpha tint scenes correctly', create: async (scene: Container) => { // layer green container.. const squareContext = new GraphicsConte...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/scene/render-filter-layer.scene.ts
tests/visual/scenes/scene/render-filter-layer.scene.ts
import { Graphics } from '../../../../src/scene/graphics/shared/Graphics'; import { RenderLayer } from '../../../../src/scene/layers/RenderLayer'; import { ColorMatrixFilter } from '~/filters/defaults/color-matrix/ColorMatrixFilter'; import type { Container } from '../../../../src/scene/container/Container'; import ty...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/scene/render-group-tint.scene.ts
tests/visual/scenes/scene/render-group-tint.scene.ts
import { Container, Graphics, GraphicsContext } from '~/scene'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should tint render groups correctly', create: async (scene: Container) => { // layer green container.. const squareContext = new GraphicsCont...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/compressed-textures/restore-context.scene.ts
tests/visual/scenes/compressed-textures/restore-context.scene.ts
import '~/compressed-textures/dds/init'; import { Assets } from '~/assets'; import { 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 compressed texture...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/compressed-textures/ktx.scene.ts
tests/visual/scenes/compressed-textures/ktx.scene.ts
import '~/compressed-textures/ktx/init'; import { Assets } from '~/assets'; import { Sprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should load a ktx texture', 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/compressed-textures/dds.scene.ts
tests/visual/scenes/compressed-textures/dds.scene.ts
import '~/compressed-textures/dds/init'; import { Assets } from '~/assets'; import { Sprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should load a dds texture', 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/assets/svg-decimal-resolution.scene.ts
tests/visual/scenes/assets/svg-decimal-resolution.scene.ts
import { Assets } from '~/assets'; import { type Container, Graphics, Sprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Texture } from '~/rendering'; export const scene: TestScene = { it: 'should render SVGs with decimal resolutions without trimming (issue #11625)', create: ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/filters/anitalias-filter.scene.ts
tests/visual/scenes/filters/anitalias-filter.scene.ts
import { AlphaFilter, BlurFilter, ColorMatrixFilter } from '~/filters'; import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render filters correctly with antialiasing', create: async (scene: C...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/filters/nested-filters-2.scene.ts
tests/visual/scenes/filters/nested-filters-2.scene.ts
import { Assets } from '~/assets'; import { ColorMatrixFilter } from '~/filters'; import { Container, Sprite } from '~/scene'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should render nested filters correctly with proper positioning', 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/filters/disabled-filters.scene.ts
tests/visual/scenes/filters/disabled-filters.scene.ts
import { Assets } from '~/assets'; import { BlurFilter, ColorMatrixFilter } from '~/filters'; import { type Container, Sprite } from '~/scene'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should respect disabled filters', 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/filters/alpha-filter.scene.ts
tests/visual/scenes/filters/alpha-filter.scene.ts
import { AlphaFilter } from '~/filters'; import { Container, Graphics } from '~/scene'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'Alpha filter should be applied correctly', create: async (scene: Container) => { const filterContainer = new Container(); ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/filters/filter-area.scene.ts
tests/visual/scenes/filters/filter-area.scene.ts
import { ColorMatrixFilter } from '~/filters'; import { Rectangle } from '~/maths'; import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'Filter Area should be applied correctly', 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/filters/nested-filters.scene.ts
tests/visual/scenes/filters/nested-filters.scene.ts
import { Assets } from '~/assets'; import { ColorMatrixFilter } from '~/filters'; import { Container, Sprite } from '~/scene'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should nested masks correctly', create: async (scene: Container) => { const filter = n...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/filters/filter-render-textures.scene.ts
tests/visual/scenes/filters/filter-render-textures.scene.ts
import { ColorMatrixFilter } from '~/filters'; import { Rectangle } from '~/maths'; import { Texture, TextureSource } from '~/rendering'; import { Graphics, Sprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Renderer } from '~/rendering'; import type { Container } from '~/scene'; exp...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/filters/clip-top-viewport/do-not-clip-to-viewport.scene.ts
tests/visual/scenes/filters/clip-top-viewport/do-not-clip-to-viewport.scene.ts
import circleFrag from './circle.frag'; import circleVert from './circle.vert'; import circleWgsl from './circle.wgsl'; import { Assets } from '~/assets'; import { Filter } from '~/filters'; import { Sprite } from '~/scene'; import type { TestScene } from '../../../types'; import type { Container } from '~/scene'; ex...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/filters/clip-top-viewport/clip-to-viewport.scene.ts
tests/visual/scenes/filters/clip-top-viewport/clip-to-viewport.scene.ts
import circleFrag from './circle.frag'; import circleVert from './circle.vert'; import circleWgsl from './circle.wgsl'; import { Assets } from '~/assets'; import { Filter } from '~/filters'; import { Sprite } from '~/scene'; import type { TestScene } from '../../../types'; import type { Container } from '~/scene'; ex...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/sprite/tiling-sprite-uvs.scene.ts
tests/visual/scenes/sprite/tiling-sprite-uvs.scene.ts
import { basePath } from '@test-utils'; import { Assets } from '~/assets'; import { Container, Graphics, TilingSprite } from '~/scene'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should respect tiling sprite uvs', options: { width: 256, height: 128 ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/sprite/tiling-sprite.scene.ts
tests/visual/scenes/sprite/tiling-sprite.scene.ts
import { basePath } from '@test-utils'; import { Assets } from '~/assets'; import { TilingSprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render tiling sprite', 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/sprite/spritesheet-mutli.scene.ts
tests/visual/scenes/sprite/spritesheet-mutli.scene.ts
import { basePath } from '@test-utils'; import { Assets } from '~/assets'; import { Sprite } from '~/scene/sprite/Sprite'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; import type { Spritesheet } from '~/spritesheet'; export const scene: TestScene = { it: 'should load a ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/sprite/sprite-reparent.scene.ts
tests/visual/scenes/sprite/sprite-reparent.scene.ts
import { Assets } from '~/assets'; import { Container, Sprite } from '~/scene'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should reparent a sprite', create: async (scene: Container, renderer) => { await Assets.load('bunny.png'); const parent = ne...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/sprite/tiling-sprite-clamp-offset.scene.ts
tests/visual/scenes/sprite/tiling-sprite-clamp-offset.scene.ts
import { basePath } from '@test-utils'; import { Assets } from '~/assets'; import { Sprite, TilingSprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Renderer } from '~/rendering'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render tilin...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/sprite/sprite-trim.scene.ts
tests/visual/scenes/sprite/sprite-trim.scene.ts
import { Assets } from '~/assets'; import { Container, Graphics, Sprite } from '~/scene'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should render a trimmed sprite correctly', create: async (scene: Container) => { await Assets.load([ `sprite-sh...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/sprite/sprite.scene.ts
tests/visual/scenes/sprite/sprite.scene.ts
import { Assets } from '~/assets'; import { AlphaFilter } from '~/filters'; import { Sprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render sprite', 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/sprite/nine-slice.scene.ts
tests/visual/scenes/sprite/nine-slice.scene.ts
import { Assets } from '~/assets'; import { NineSliceSprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render a nine slice sprite correctly', create: async (scene: Container) => { const tex...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/sprite/sprite-asset-sheet.scene.ts
tests/visual/scenes/sprite/sprite-asset-sheet.scene.ts
import { basePath } from '@test-utils'; import { Assets } from '~/assets'; import { Sprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; import type { Spritesheet } from '~/spritesheet'; export const scene: TestScene = { it: 'should render from sprite sh...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/sprite/sprite-asset-sheet-texture-options.scene.ts
tests/visual/scenes/sprite/sprite-asset-sheet-texture-options.scene.ts
import { basePath } from '@test-utils'; import { Assets } from '~/assets'; import { Sprite } from '~/scene/sprite/Sprite'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; import type { Spritesheet } from '~/spritesheet'; export const scene: TestScene = { it: 'should render ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/sprite/sprite-sizing.scene.ts
tests/visual/scenes/sprite/sprite-sizing.scene.ts
import { Assets } from '~/assets'; 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 sprite', create: async (scene: Container) => { co...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/blend-modes/blend-mode-min.scene.ts
tests/visual/scenes/blend-modes/blend-mode-min.scene.ts
import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should min blend correctly', create: async (scene: Container) => { const yellow = new Graphics().rect(0, 0, 100, 100).fill(0xffff00); ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/blend-modes/blend-mode-render-texture.scene.ts
tests/visual/scenes/blend-modes/blend-mode-render-texture.scene.ts
import '~/advanced-blend-modes/init'; import { OverlayBlend } from '~/advanced-blend-modes'; import { Container, Graphics, Sprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Renderer } from '~/rendering'; export const scene: TestScene = { it: 'should have correct alpha when blend...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/blend-modes/blend-mode-max.scene.ts
tests/visual/scenes/blend-modes/blend-mode-max.scene.ts
import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should max blend correctly', create: async (scene: Container) => { const red = new Graphics().rect(0, 0, 100, 100).fill(0xff0000); ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/blend-modes/render-groups/deeply-nested-cached-containers.scene.ts
tests/visual/scenes/blend-modes/render-groups/deeply-nested-cached-containers.scene.ts
import { type TestScene } from '../../../types'; import { Assets } from '~/assets'; import { Texture } from '~/rendering'; import { Container, Graphics, Sprite } from '~/scene'; export const scene: TestScene = { it: 'deeply nested cached render groups', options: { useBackBuffer: true, width: 64...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/blend-modes/render-groups/cached-multiple-blend-modes.scene.ts
tests/visual/scenes/blend-modes/render-groups/cached-multiple-blend-modes.scene.ts
import { type TestScene } from '../../../types'; import { Assets } from '~/assets'; import { Texture } from '~/rendering'; import { Container, Graphics, Sprite } from '~/scene'; export const scene: TestScene = { it: 'should render cached container with multiple blend modes applied to children', options: { useB...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/blend-modes/render-groups/cached-containers-advanced-blend-modes.scene.ts
tests/visual/scenes/blend-modes/render-groups/cached-containers-advanced-blend-modes.scene.ts
import { type TestScene } from '../../../types'; import { Assets } from '~/assets'; import { type BLEND_MODES, Texture } from '~/rendering'; import { Container, Graphics, Sprite } from '~/scene'; export const scene: TestScene = { it: 'should render cached containers mixed with non cached, with advanced blend mode ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/mesh/perspective-mesh.scene.ts
tests/visual/scenes/mesh/perspective-mesh.scene.ts
import { Assets } from '~/assets'; import { PerspectiveMesh } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render a perspective mesh', create: async (scene: Container) => { const texture = awai...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/mesh/triangle.scene.ts
tests/visual/scenes/mesh/triangle.scene.ts
import { Geometry, Shader } from '~/rendering'; import { Mesh } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render a custom triangle correctly', create: async (scene: Container) => { const geo...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/mesh/culling-texture.scene.ts
tests/visual/scenes/mesh/culling-texture.scene.ts
import { ColorMatrixFilter } from '../../../../src/filters/defaults/color-matrix/ColorMatrixFilter'; import { State } from '../../../../src/rendering/renderers/shared/state/State'; import { Mesh } from '../../../../src/scene/mesh/shared/Mesh'; import { MeshGeometry } from '../../../../src/scene/mesh/shared/MeshGeometry...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/mesh/fully-custom-mesh.scene.ts
tests/visual/scenes/mesh/fully-custom-mesh.scene.ts
import { Geometry, GlProgram, GpuProgram, Shader } from '~/rendering'; import { Mesh } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; /** * NOTE on the result: * The webGL triangles will be upside down in this test - this is actually correct as rendering to a...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/mesh/sprite-sheet-mesh.scene.ts
tests/visual/scenes/mesh/sprite-sheet-mesh.scene.ts
import { Assets } from '~/assets'; import { MeshPlane, MeshRope } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; import type { Spritesheet } from '~/spritesheet'; export const scene: TestScene = { it: 'should render meshes from sprite sheets', create: a...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/mesh/meshrope.scene.ts
tests/visual/scenes/mesh/meshrope.scene.ts
import { Assets } from '~/assets'; import { Point } from '~/maths'; import { Container, MeshRope } from '~/scene'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should render mesh rope', create: async (scene: Container) => { // build a rope! const rop...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/mesh/geometry-from-path.scene.ts
tests/visual/scenes/mesh/geometry-from-path.scene.ts
import { Texture } from '~/rendering'; import { buildGeometryFromPath, GraphicsPath, Mesh } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render mesh with geometry build from custom path correctly', create:...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/mesh/mesh-textures.scene.ts
tests/visual/scenes/mesh/mesh-textures.scene.ts
import { Point } from '~/maths'; import { MeshRope } from '~/scene'; import type { TestScene } from '../../types'; import type { Renderer } from '~/rendering'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should multiple textures on a complex mesh', create: async (scene: Co...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/mesh/custom-mesh-instanced.scene.ts
tests/visual/scenes/mesh/custom-mesh-instanced.scene.ts
import { Assets } from '~/assets'; import { Geometry, Shader } from '~/rendering'; import { Mesh } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render a custom instanced mesh correctly', create: async (sce...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/mesh/meshplane.scene.ts
tests/visual/scenes/mesh/meshplane.scene.ts
import { basePath } from '@test-utils'; import { Assets } from '~/assets'; import { MeshPlane } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render mesh plane', create: async (scene: Container, renderer) =...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/mesh/custom-mesh.scene.ts
tests/visual/scenes/mesh/custom-mesh.scene.ts
import { Assets } from '~/assets'; import { Geometry, Shader } from '~/rendering'; import { Mesh } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render a custom mesh correctly', create: async (scene: Contai...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/textures/dynamic-texture.scene.ts
tests/visual/scenes/textures/dynamic-texture.scene.ts
import { Assets } from '~/assets'; import { Rectangle } from '~/maths'; import { Texture } from '~/rendering'; import { Sprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Renderer } from '~/rendering'; import type { Container } from '~/scene'; export const scene: TestScene = { it...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/textures/extract.scene.ts
tests/visual/scenes/textures/extract.scene.ts
import { Assets } from '~/assets'; import { DOMAdapter } from '~/environment'; import { CanvasSource, ImageSource, Texture } from '~/rendering'; import { Sprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Renderer } from '~/rendering'; import type { Container } from '~/scene'; const ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/textures/image-source-texture.scene.ts
tests/visual/scenes/textures/image-source-texture.scene.ts
import { Texture } from '../../../../src/rendering/renderers/shared/texture/Texture'; import { Sprite } from '../../../../src/scene/sprite/Sprite'; import type { Container } from '../../../../src/scene'; import type { TestScene } from '../../types'; // eslint-disable-next-line max-len const base64Image = 'iVBORw0KGgo...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/textures/canvas-texture.scene.ts
tests/visual/scenes/textures/canvas-texture.scene.ts
import { Texture } from '~/rendering'; import { Graphics } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should not clear a canvas after it has been resized', create: async (scene: Container) => { cons...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/textures/multiple-render-targets.scene.ts
tests/visual/scenes/textures/multiple-render-targets.scene.ts
import { Mesh } from '../../../../src/scene/mesh/shared/Mesh'; import { Sprite } from '../../../../src/scene/sprite/Sprite'; import { Geometry, RenderTarget, Shader, Texture } from '~/rendering'; import type { TestScene } from '../../types'; import type { Renderer } from '~/rendering'; import type { Container } from '...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/textures/render-texture.scene.ts
tests/visual/scenes/textures/render-texture.scene.ts
import { Assets } from '~/assets'; import { RenderTexture } from '~/rendering'; import { Graphics, 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 text...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/textures/mipmap.scene.ts
tests/visual/scenes/textures/mipmap.scene.ts
import { Assets } from '~/assets'; import { Sprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Texture } from '~/rendering'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render mipmapped texture', 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/textures/non-premultiplied-alpha.scene.ts
tests/visual/scenes/textures/non-premultiplied-alpha.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 no-premultiply-alpha', create: async (scene: Container) => { const circleTexture = await...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/textures/premultiplied-alpha.scene.ts
tests/visual/scenes/textures/premultiplied-alpha.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 premultiply-alpha correctly', create: async (scene: Container) => { // Load the bunny te...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/dynamic-bitmap-text.scene.ts
tests/visual/scenes/text/dynamic-bitmap-text.scene.ts
import { Assets } from '~/assets'; import { BitmapText } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render both canvas and bitmap text of the same style', 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/text/bitmap-text-fill.scene.ts
tests/visual/scenes/text/bitmap-text-fill.scene.ts
import { Assets } from '~/assets'; import { BitmapText } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render bitmap text fill correctly', create: async (scene: Container) => { await Assets.load...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/html-text-dynamic-destroy.scene.ts
tests/visual/scenes/text/html-text-dynamic-destroy.scene.ts
import { Container, HTMLText } from '~/scene'; import type { TestScene } from '../../types'; export const scene: TestScene = { it: 'should render two text correctly with the same style and value', create: async (scene: Container, renderer) => { let container = new Container(); let text = ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/bitmap-text-install.scene.ts
tests/visual/scenes/text/bitmap-text-install.scene.ts
import { Assets } from '~/assets'; import { BitmapFont, BitmapFontManager, BitmapText } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render an installed font correctly', 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/text/html-text-texture-style.scene.ts
tests/visual/scenes/text/html-text-texture-style.scene.ts
import { TextureStyle } from '../../../../src/rendering/renderers/shared/texture/TextureStyle'; import { HTMLTextStyle, Sprite } from '~/scene'; import type { TestScene } from '../../types'; import type { Renderer } from '~/rendering'; import type { Container } from '~/scene'; export const scene: TestScene = { it...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/bitmap-split.scene.ts
tests/visual/scenes/text/bitmap-split.scene.ts
import { Assets } from '~/assets'; import { BitmapFont, BitmapText } from '~/scene'; import { SplitBitmapText } from '~/scene/text-split/SplitBitmapText'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render a split bitmap cor...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/tests/visual/scenes/text/text-stroke-fills.scene.ts
tests/visual/scenes/text/text-stroke-fills.scene.ts
import { Color } from '~/color'; import { FillGradient, Text } from '~/scene'; import type { TestScene } from '../../types'; import type { Container, FillStyle, StrokeStyle } from '~/scene'; export const scene: TestScene = { it: 'should update text fill/stroke through proxy', create: async (scene: Container, ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false