PixelArtPreset
A complete set of PixelArt settings, as data: every property of the filter, with the
defaults of the filter itself. Apply one with PixelArt.applyPreset(), read the current
settings back with PixelArt.toPreset(), and paste the result of toHaxe() in code to
keep a look that was tuned at runtime.
Built-in presets: sharp, clean, crtTv, crtMonitor, gba, lite (see byName()).
Static Members
NAMES: ReadOnlyArray<String>Names of the built-in presets accepted by byName()
sharp(): PixelArtPresetThe original PixelArt look: SHARP mode with its defaults
| Returns |
|---|
| PixelArtPreset |
clean(): PixelArtPresetCRT mode with no effect at all: the reference to compare the CRT shader against sharp
| Returns |
|---|
| PixelArtPreset |
crtTv(): PixelArtPresetA consumer television: soft beam, marked scanlines, TV shadow mask, halo, slight curvature, rounded corners, vignette and a little grain
| Returns |
|---|
| PixelArtPreset |
crtMonitor(): PixelArtPresetA computer monitor: sharper beam, thin scanlines, aperture grille, faint halo, flat screen
| Returns |
|---|
| PixelArtPreset |
gba(): PixelArtPresetGame Boy Advance LCD: sharp pixels, RGB subpixels and grid, and the gba-color (Pokefan531, hunterk) gamma, luminance and color matrix
| Returns |
|---|
| PixelArtPreset |
lite(): PixelArtPresetcrtTv for weak GPUs: lite quality, no halo, no grain
| Returns |
|---|
| PixelArtPreset |
byName(name: String): PixelArtPresetA built-in preset by name (see NAMES), or null
| Name | Type |
|---|---|
name |
String |
| Returns |
|---|
| PixelArtPreset |
Instance Members
mode: PixelArtModesharpness: FloatchromaticAberration: FloatgridThickness: FloatgridColor: ColorgridAlpha: FloatscanlineCount: FloatscanlineIntensity: FloatscanlineShape: FloatverticalMaskCount: FloatverticalMaskIntensity: FloatglowStrength: FloatglowThresholdMin: FloatglowThresholdMax: FloatbeamAmount: FloathardPix: FloatsharpBand: FloathardScan: FloatbeamMin: FloatbeamMax: FloatscanlineStrength: FloatmaskType: PixelArtMaskmaskDark: FloatmaskLight: FloatmaskScale: FloatlcdGridStrength: FloatlcdSubpixelLow: FloatbloomAmount: FloatbloomSize: FloatwarpX: FloatwarpY: FloatcornerRadius: FloatcornerSmooth: FloatvignetteStrength: Floatgamma: Floatbrightness: Float3 x 3 color matrix, row by row: the first three values give the output red from the input red, green and blue, and so on.
luminance: FloatnoiseStrength: FloatflickerStrength: Floatquality: PixelArtQualitytoHaxe(): StringThis preset as a Haxe struct literal, ready to paste in code
| Returns |
|---|
| String |
new(?mode: Null<PixelArtMode>, ?sharpness: Null<Float>, ?chromaticAberration: Null<Float>, ?gridThickness: Null<Float>, ?gridColor: Null<Color>, ?gridAlpha: Null<Float>, ?scanlineCount: Null<Float>, ?scanlineIntensity: Null<Float>, ?scanlineShape: Null<Float>, ?verticalMaskCount: Null<Float>, ?verticalMaskIntensity: Null<Float>, ?glowStrength: Null<Float>, ?glowThresholdMin: Null<Float>, ?glowThresholdMax: Null<Float>, ?beamAmount: Null<Float>, ?hardPix: Null<Float>, ?sharpBand: Null<Float>, ?hardScan: Null<Float>, ?beamMin: Null<Float>, ?beamMax: Null<Float>, ?scanlineStrength: Null<Float>, ?maskType: Null<PixelArtMask>, ?maskDark: Null<Float>, ?maskLight: Null<Float>, ?maskScale: Null<Float>, ?lcdGridStrength: Null<Float>, ?lcdSubpixelLow: Null<Float>, ?bloomAmount: Null<Float>, ?bloomSize: Null<Float>, ?warpX: Null<Float>, ?warpY: Null<Float>, ?cornerRadius: Null<Float>, ?cornerSmooth: Null<Float>, ?vignetteStrength: Null<Float>, ?gamma: Null<Float>, ?brightness: Null<Float>, ?colorMatrix: Null<Array<Float>>, ?luminance: Null<Float>, ?noiseStrength: Null<Float>, ?flickerStrength: Null<Float>, ?quality: Null<PixelArtQuality>): Void| Name | Type | Default | Description |
|---|---|---|---|
mode |
Null<PixelArtMode> | (optional) | |
sharpness |
Null<Float> | (optional) | |
chromaticAberration |
Null<Float> | (optional) | |
gridThickness |
Null<Float> | (optional) | |
gridColor |
Null<Color> | (optional) | |
gridAlpha |
Null<Float> | (optional) | |
scanlineCount |
Null<Float> | (optional) | |
scanlineIntensity |
Null<Float> | (optional) | |
scanlineShape |
Null<Float> | (optional) | |
verticalMaskCount |
Null<Float> | (optional) | |
verticalMaskIntensity |
Null<Float> | (optional) | |
glowStrength |
Null<Float> | (optional) | |
glowThresholdMin |
Null<Float> | (optional) | |
glowThresholdMax |
Null<Float> | (optional) | |
beamAmount |
Null<Float> | (optional) | |
hardPix |
Null<Float> | (optional) | |
sharpBand |
Null<Float> | (optional) | |
hardScan |
Null<Float> | (optional) | |
beamMin |
Null<Float> | (optional) | |
beamMax |
Null<Float> | (optional) | |
scanlineStrength |
Null<Float> | (optional) | |
maskType |
Null<PixelArtMask> | (optional) | |
maskDark |
Null<Float> | (optional) | |
maskLight |
Null<Float> | (optional) | |
maskScale |
Null<Float> | (optional) | |
lcdGridStrength |
Null<Float> | (optional) | |
lcdSubpixelLow |
Null<Float> | (optional) | |
bloomAmount |
Null<Float> | (optional) | |
bloomSize |
Null<Float> | (optional) | |
warpX |
Null<Float> | (optional) | |
warpY |
Null<Float> | (optional) | |
cornerRadius |
Null<Float> | (optional) | |
cornerSmooth |
Null<Float> | (optional) | |
vignetteStrength |
Null<Float> | (optional) | |
gamma |
Null<Float> | (optional) | |
brightness |
Null<Float> | (optional) | |
colorMatrix |
Null<Array<Float>> | (optional) | * 3 x 3 color matrix, row by row: the first three values give the output red from the input red, green and blue, and so on. |
luminance |
Null<Float> | (optional) | |
noiseStrength |
Null<Float> | (optional) | |
flickerStrength |
Null<Float> | (optional) | |
quality |
Null<PixelArtQuality> | (optional) |
Private Members
| Name | Type |
|---|---|
a |
Array<Float> |
b |
Array<Float> |
| Returns |
|---|
| Bool |
Metadata
| Name | Parameters |
|---|---|
:structInit |
- |