Skip to main content

AntialiasOptions

Index

Properties

optionalcanvasImageRendering

canvasImageRendering?: auto | pixelated

Sets the canvas image rendering CSS style

Default 'auto'

optionalfiltering

filtering?: ImageFiltering

Sets the default image filtering for excalibur

Default [[ImageFiltering.Blended]]

optionalmultiSampleAntialiasing

multiSampleAntialiasing?: boolean | { samples: number }

Configures the internal render buffer multi-sampling settings

Default true, with max samples that the platform supports

optionalnativeContextAntialiasing

nativeContextAntialiasing?: boolean

Configures the webgl's getContext('webgl2', {antialias: true | false}) or configures Canvas2D imageSmoothing = true;

Note this option is incompatible with multiSampleAntialiasing

Default false

optionalpixelArtSampler

pixelArtSampler?: boolean

Turns on the special pixel art sampler in excalibur's image shader for sub pixel anti-aliasing

Default false