Interface: GeometryPathOptions
Defined in: node_modules/pixi.js/lib/scene/graphics/shared/utils/buildGeometryFromPath.d.ts:25
Options for building geometry from a graphics path. Provides a possibility to specify a transformation Matrix for the texture's UVs and output mesh geometry.
Example
const options: GeometryPathOptions = {
path: new GraphicsPath().rect(0, 0, 64, 64),
textureMatrix: new Matrix()
.scale(2, 2)
.rotate(Math.PI / 4),
out: meshGeometry
};
const geometry:MeshGeometry = buildGeometryFromPath(options);
const mesh = new Mesh({
geometry: meshGeometry,
texture: bunnyTexture
});
Advanced
Properties
out?
> optional out?: MeshGeometry
Defined in: node_modules/pixi.js/lib/scene/graphics/shared/utils/buildGeometryFromPath.d.ts:31
an optional MeshGeometry to write too instead of creating a new one
path
> path: GraphicsPath
Defined in: node_modules/pixi.js/lib/scene/graphics/shared/utils/buildGeometryFromPath.d.ts:27
the path to build the geometry from
textureMatrix?
> optional textureMatrix?: Matrix
Defined in: node_modules/pixi.js/lib/scene/graphics/shared/utils/buildGeometryFromPath.d.ts:29
a Matrix that can be used to modify the texture UVs of the path being built