PixelArtPreset
ceramic.PixelArtPreset (Class)
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 of the built-in presets accepted by byName()
The original PixelArt look: SHARP mode with its defaults
CRT mode with no effect at all: the reference to compare the CRT shader against sharp
A consumer television: soft beam, marked scanlines, TV shadow mask, halo,
slight curvature, rounded corners, vignette and a little grain
A computer monitor: sharper beam, thin scanlines, aperture grille, faint halo, flat screen
Game Boy Advance LCD: sharp pixels, RGB subpixels and grid, and the gba-color
(Pokefan531, hunterk) gamma, luminance and color matrix
crtTv for weak GPUs: lite quality, no halo, no grain
A built-in preset by name (see NAMES), or null
Instance Members
chromaticAberration: Float
verticalMaskIntensity: Float
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.
This preset as a Haxe struct literal, ready to paste in code
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
Private Members
| Name |
Parameters |
:hxGen |
- |
:structInit |
- |