Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate gradient images simulating various lighting conditions for AI art projects, with customizable colors and positions.
The LightSource
node is designed to generate gradient images that simulate various lighting conditions, which can be used as simple light sources in your AI art projects. This node allows you to create gradients with customizable colors and positions, providing a versatile tool for enhancing the lighting effects in your images. By adjusting parameters such as light position, color, and intensity, you can achieve a wide range of lighting effects, from subtle shading to dramatic highlights. The primary goal of this node is to offer a straightforward way to incorporate realistic lighting into your artwork, making it an essential tool for AI artists looking to add depth and dimension to their creations.
This parameter determines the position of the light source in the generated gradient image. You can choose from various options such as "Left Light", "Right Light", "Top Light", "Bottom Light", "Top Left Light", "Top Right Light", "Bottom Left Light", and "Bottom Right Light". The position you select will affect the direction and intensity of the gradient, simulating the effect of light coming from that specific direction.
The multiplier
parameter controls the intensity of the gradient. It is a floating-point value with a default of 1.0, a minimum of 0.0, and a maximum of 100.0. Adjusting this value will change the steepness of the gradient, allowing you to create either subtle or more pronounced lighting effects.
This parameter specifies the starting color of the gradient. You can input the color in either RGB format (e.g., "255,255,255") or hex format (e.g., "#FFFFFF"). The start color represents the color at the light source's origin.
The end_color
parameter defines the ending color of the gradient. Similar to start_color
, you can input the color in RGB or hex format. The end color represents the color at the farthest point from the light source.
This parameter sets the width of the generated gradient image. It is an integer value with a default of 512, a minimum of 0, and a maximum defined by MAX_RESOLUTION
. Adjusting the width will change the horizontal size of the image.
The height
parameter determines the height of the generated gradient image. It is an integer value with a default of 512, a minimum of 0, and a maximum defined by MAX_RESOLUTION
. Adjusting the height will change the vertical size of the image.
This optional parameter specifies the number of gradient images to generate in a batch. It is an integer value with a default of 1, a minimum of 1, and a maximum of 4096. Increasing the batch size allows you to generate multiple images simultaneously.
This optional parameter allows you to input a previous image to which the new gradient image will be appended. This can be useful for creating sequences or combining multiple lighting effects.
The output of the LightSource
node is an image tensor representing the generated gradient. This image can be used as a light source in your AI art projects, providing realistic lighting effects based on the specified input parameters. The output image is normalized to a range of 0.0 to 1.0 and can be used directly in further processing or rendering steps.
light_position
settings to see how the direction of light affects your image.multiplier
parameter to fine-tune the intensity of the gradient for subtle or dramatic lighting effects.LightSource
nodes with different start_color
and end_color
settings to create complex lighting scenarios.prev_image
parameter to layer multiple gradients and achieve more intricate lighting patterns.light_position
parameter is set to one of the supported values listed in the error message.start_color
or end_color
parameter is not in the correct format.width
or height
parameter is set outside the allowed range.width
and height
parameters are within the specified minimum and maximum values.batch_size
parameter is set outside the allowed range.batch_size
parameter to be within the range of 1 to 4096.© Copyright 2024 RunComfy. All Rights Reserved.