ComfyUI > Nodes > GlitchNodes > Ordered Dithering | GlitchNodes

ComfyUI Node: Ordered Dithering | GlitchNodes

Class Name

OrderedDithering

Category
GlitchNodes
Author
pxl-pshr (Account age: 549days)
Extension
GlitchNodes
Latest Updated
2026-04-16
Github Stars
0.07K

How to Install GlitchNodes

Install this extension via the ComfyUI Manager by searching for GlitchNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter GlitchNodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Ordered Dithering | GlitchNodes Description

The OrderedDithering node applies structured dithering to simulate color depth in images.

Ordered Dithering | GlitchNodes:

The OrderedDithering node is designed to apply a dithering effect to images, which is a technique used to simulate the appearance of color depth in images with a limited color palette. This node is particularly useful for creating artistic effects or preparing images for display on devices with limited color capabilities. By using ordered dithering, the node arranges pixels in a structured pattern to create the illusion of more colors and gradients than are actually present. This method is beneficial for reducing banding in gradients and can be used to create visually appealing effects in digital art. The node supports different dithering types, such as "Standard" and "Artistic," allowing you to choose the style that best fits your creative needs. It also provides options to adjust the color mode, number of colors, pattern size, and other parameters to fine-tune the dithering effect.

Ordered Dithering | GlitchNodes Input Parameters:

images

This parameter represents the input image or images to which the dithering effect will be applied. The images should be in a format that can be processed by the node, typically as a tensor or array. The quality and characteristics of the input images will directly affect the outcome of the dithering process.

dither_type

This parameter specifies the type of dithering to apply, with options such as "Standard" or "Artistic." The choice of dithering type influences the pattern and style of the dithering effect, allowing for different artistic expressions or technical requirements.

color_mode

The color_mode parameter determines how colors are handled during the dithering process. Options may include "Grayscale" or other color modes, affecting whether the output is in black and white or retains color information. This setting is crucial for achieving the desired visual effect.

num_colors

This parameter sets the number of colors to be used in the dithered image. A lower number of colors can create a more pronounced dithering effect, while a higher number can result in smoother gradients. The choice of num_colors should align with the intended artistic or technical outcome.

pattern_size

Pattern_size defines the size of the dithering pattern applied to the image. Larger patterns can create more noticeable effects, while smaller patterns may produce subtler results. This parameter allows for customization of the dithering texture.

scale

The scale parameter adjusts the size of the dithering pattern relative to the image. Scaling the pattern can enhance or reduce the visibility of the dithering effect, providing flexibility in achieving the desired artistic look.

pattern_contrast

Pattern_contrast controls the contrast of the dithering pattern, affecting how stark or subtle the dithering appears. Higher contrast can make the pattern more prominent, while lower contrast can blend it more seamlessly into the image.

frames

This parameter is used when applying dithering to a sequence of images or frames, such as in an animation. It ensures that the dithering effect is consistent across multiple frames, maintaining visual coherence.

speed

Speed determines the rate at which any animated dithering effects are applied. This is particularly relevant for animations where the dithering pattern may change over time, allowing for dynamic visual effects.

wave_speed

Wave_speed is another parameter related to animated dithering effects, controlling the speed of wave-like patterns within the dithering. Adjusting this can create interesting motion effects in animations.

invert

The invert parameter allows you to invert the dithering pattern, swapping light and dark areas. This can be used to achieve different visual effects or to better match the dithering to the overall composition of the image.

Ordered Dithering | GlitchNodes Output Parameters:

output

The output parameter represents the dithered image or images resulting from the application of the ordered dithering process. This output retains the structure and color depth adjustments specified by the input parameters, providing a visually altered version of the original image that reflects the chosen dithering style and settings.

Ordered Dithering | GlitchNodes Usage Tips:

  • Experiment with different dither_type settings to find the style that best suits your artistic vision, whether it's a more traditional look or a unique artistic effect.
  • Adjust the num_colors parameter to balance between a pronounced dithering effect and smoother gradients, depending on the desired outcome.
  • Use the pattern_contrast and scale parameters to fine-tune the visibility and texture of the dithering pattern, ensuring it complements the overall composition of your image.

Ordered Dithering | GlitchNodes Common Errors and Solutions:

"Matrix size not found in ordered_matrices"

  • Explanation: This error occurs when the specified matrix size is not available in the predefined ordered matrices.
  • Solution: Ensure that the matrix_type parameter is set to a valid size, such as "4x4," which is a default option.

"Invalid color_mode specified"

  • Explanation: This error indicates that the color_mode parameter is set to an unsupported value.
  • Solution: Verify that the color_mode is set to a valid option, such as "Grayscale," and adjust if necessary.

"Image shape not compatible with dithering process"

  • Explanation: This error suggests that the input image does not have the expected dimensions or format for processing.
  • Solution: Check that the input image is correctly formatted and has the appropriate dimensions for the dithering operation.

Ordered Dithering | GlitchNodes Related Nodes

Go back to the extension to check out more related nodes.
GlitchNodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.