LineScreen | GlitchNodes:
The LineScreen node is designed to apply a line screen effect to images, a technique often used in graphic design and printing to create a halftone pattern. This node allows you to transform your images by overlaying a pattern of lines, which can be customized in terms of spacing, angle, and color. The effect can enhance the visual texture of an image, giving it a unique artistic flair reminiscent of vintage print media. By adjusting parameters such as contrast and threshold, you can control the visibility and intensity of the line pattern, making it a versatile tool for creating stylized images. The LineScreen node is particularly useful for artists looking to add a retro or glitch aesthetic to their work, providing a creative way to manipulate image textures and contrasts.
LineScreen | GlitchNodes Input Parameters:
image
This parameter represents the input image to which the line screen effect will be applied. It is the base upon which all other transformations will be executed.
line_spacing
This integer parameter controls the distance between the lines in the pattern. A smaller value results in closely spaced lines, while a larger value increases the spacing. The minimum value is 2, the maximum is 20, and the default is 4.
angle
This float parameter determines the angle at which the lines are drawn. It allows you to rotate the line pattern from -90 to 90 degrees, with a default of -45.0 degrees, enabling you to create diagonal, vertical, or horizontal lines.
threshold
This float parameter sets the threshold for line visibility. Pixels with intensity below this threshold will be affected by the line pattern. It ranges from 0.1 to 0.9, with a default of 0.5, allowing you to control the prominence of the lines based on image brightness.
contrast_boost
This float parameter enhances the contrast of the image before applying the line pattern. It ranges from 1.0 to 2.0, with a default of 1.2, allowing you to make the lines more or less pronounced by adjusting the image contrast.
invert
This boolean parameter, when enabled, inverts the colors of the image before applying the line pattern. The default is False, meaning the colors are not inverted unless specified.
line_color_r
This float parameter sets the red component of the line color, ranging from 0.0 to 1.0, with a default of 0.0. It allows you to customize the color of the lines to suit your artistic needs.
line_color_g
This float parameter sets the green component of the line color, ranging from 0.0 to 1.0, with a default of 0.0. It works in conjunction with the other color parameters to define the line color.
line_color_b
This float parameter sets the blue component of the line color, ranging from 0.0 to 1.0, with a default of 0.0. It completes the RGB color definition for the lines.
bg_color_r
This float parameter sets the red component of the background color, ranging from 0.0 to 1.0, with a default of 1.0. It defines the color of the areas not covered by the line pattern.
bg_color_g
This float parameter sets the green component of the background color, ranging from 0.0 to 1.0, with a default of 1.0. It is part of the RGB definition for the background color.
bg_color_b
This float parameter sets the blue component of the background color, ranging from 0.0 to 1.0, with a default of 1.0. It finalizes the RGB color setting for the background.
LineScreen | GlitchNodes Output Parameters:
result_tensor
The output is a tensor representing the transformed image with the line screen effect applied. This tensor retains the original image dimensions and contains the visual modifications based on the input parameters, providing a new artistic version of the input image.
LineScreen | GlitchNodes Usage Tips:
- Experiment with different
line_spacingandanglevalues to achieve various artistic effects, such as creating a crosshatch pattern by using two LineScreen nodes with perpendicular angles. - Use the
contrast_boostparameter to enhance the visibility of the line pattern, especially in images with subtle tonal variations. - Adjust the
line_colorandbg_colorparameters to match the color scheme of your project, allowing the line screen effect to blend seamlessly with other design elements.
LineScreen | GlitchNodes Common Errors and Solutions:
Image shape mismatch
- Explanation: This error occurs when the input image does not have the expected shape or dimensions.
- Solution: Ensure that the input image is correctly formatted and has the appropriate dimensions before applying the LineScreen node.
Invalid parameter value
- Explanation: This error arises when a parameter is set outside its allowed range.
- Solution: Double-check the parameter values to ensure they fall within the specified minimum and maximum limits. Adjust any values that are out of range.
