Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates text creation and rendering on customizable image canvas with various visual customization options for seamless integration into digital artwork.
The TextBox node is designed to facilitate the creation and rendering of text within a customizable image canvas. It allows you to input text and adjust various visual parameters to achieve the desired appearance, such as font size, color, and positioning. This node is particularly beneficial for AI artists who want to incorporate text into their digital artwork seamlessly. By providing a range of customization options, the TextBox node enables you to create visually appealing text elements that can be integrated into larger compositions. The primary function of this node is to render text onto an image canvas, which can then be used in various creative projects.
This parameter allows you to input the text string that you want to render on the image canvas. It supports multiline text, providing flexibility in how the text is displayed. The default value is an empty string.
This parameter determines the size of the text to be rendered. It accepts integer values ranging from 8 to 128, with a default value of 32. Adjusting the font size can significantly impact the readability and visual impact of the text.
This parameter specifies the color of the text using a hexadecimal color code. The default color is white (#FFFFFF
). Changing the text color can help the text stand out or blend with the background, depending on your artistic intent.
This parameter allows you to define the starting color of a gradient applied to the text. It uses a hexadecimal color code, and the default is an empty string, indicating no gradient.
This parameter specifies the ending color of the gradient applied to the text. Like the start color, it uses a hexadecimal color code, with the default being an empty string.
This parameter sets the angle of the gradient applied to the text, measured in degrees. It accepts integer values from 0 to 360, with a default of 0 degrees, indicating a horizontal gradient.
This parameter defines the color of the background behind the text using a hexadecimal color code. The default color is black (#000000
). This can be adjusted to enhance the contrast and visibility of the text.
This parameter sets the width of the image canvas in pixels. It accepts integer values from 64 to 2048, with a default of 512 pixels. The width determines the horizontal space available for rendering the text.
This parameter specifies the height of the image canvas in pixels. It accepts integer values from 64 to 2048, with a default of 512 pixels. The height determines the vertical space available for rendering the text.
This parameter determines the horizontal position of the text on the canvas. It accepts integer values from 0 to 2048, with a default of 256 pixels, allowing you to position the text precisely.
This parameter sets the vertical position of the text on the canvas. It accepts integer values from 0 to 2048, with a default of 256 pixels, enabling precise vertical placement of the text.
This parameter allows you to rotate the text on the canvas. It accepts float values from -360.0 to 360.0 degrees, with a default of 0.0, providing flexibility in text orientation.
This parameter controls the transparency of the text, with a range from 0.0 (completely transparent) to 1.0 (fully opaque). The default value is 1.0, ensuring the text is fully visible.
This boolean parameter determines whether the background color is visible behind the text. The default value is True
, meaning the background is shown.
This parameter allows you to input a base64-encoded PNG image as the canvas. The default is an empty string, indicating no image is used. This can be useful for overlaying text on existing images.
The output of the TextBox node is an image that contains the rendered text. This image can be used in various creative projects, serving as a standalone piece or as part of a larger composition. The output image reflects all the input parameters, such as text content, color, size, and positioning, providing a visual representation of the configured text.
canvas_image
parameter is not a valid base64-encoded PNG image.canvas_image
string is correctly formatted and starts with data:image/png;base64,
.text_color
, background_color
) are not valid hexadecimal color codes.#RRGGBB
.position_x
or position_y
values place the text outside the canvas dimensions.width
and height
parameters.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.