OkLab Dithering
Comments in settings.json not supported
{
"ditherType": "ordered",
"distanceMode": "srgb",
"mathMode": "lrgb",
"hideSemiTransparent": false,
"hideThreshold": 127,
"mono": false,
"grayscale": false,
"matrixType": "bluenoise128",
"ditherAlpha": true,
"ditherAlphaFactor": 1,
"ditherAlphaType": "ordered",
"shape": {
"size": [ 3, 2 ],
"points": [
[ 0, 0 ],
[ 2, 0 ],
[ 0, 1 ],
[ 1, 1 ],
[ 2, 1 ],
[ 1, 2 ]
]
}
}orderedfor ordered dithering- With new ordered dithering method
mathModeis not used
- With new ordered dithering method
floydorfloyd-steinbergorsteinbergorfsfor Floyd-Steinberg ditheringnonefor no dithering
srgbfor sRGBoklabfor all valuesoklab_lfor lightness onlylrgbfor Linear RGB
trueorfalse
- An unsigned integer between
0and255
trueorfalse- Treats selected palette like it's a monochromatic palette
- Will override
grayscalesetting - NOTE: Due to the math - math mode
oklabandoklab_lwill produce the same result
trueorfalse- Uses
distanceModeto determine conversion to grayscale - NOTE: Due to the math, math mode
oklabandoklab_lwill produce the same result
- Uses
Matrix used for ordered dithering
bayerN- Where N is the size of the bayer matrix
- N must be a power of two
- Be careful of high values of N
blueNoiseN- Where N is the size of the blue noise matrix
ignInterleaved Gradient NoiseparkerDitherbased on Matt Parker Parker Squarehearta custom threshold map in the shape of pixel heartscirclea custom threshold map in the style of half-tonebayerShapeN- Where N is the size of the bayer matrix
- N must be a power of two
- Uses
shapesetting - more
trueorfalse- Enables dithering of alpha channel
- This setting is overridden if
hideSemiTransparentistrue
- An unsigned integer between
0and255- Factor for alpha dithering
- Same options as
ditherType- Dithering algorithm for alpha channel
- Uses
matrixTypefor the threshold matrix
- Object type
size- The size of a cell in the form of a 1D Array -[width, height]- Will result in a threshold map size of
(N * width, N * height)
- Will result in a threshold map size of
points- A 2D array of points to apply the threshold value relative to the origin(0, 0)- In the form of
[[x, y]...] - Points can extend beyond the cell's size
- Any point extending beyond the map's full size will be wrapped
- In the form of