Visit ComfyUI Online for ready-to-use ComfyUI environment
Node for creating custom text-based images with font and color options for AI artists.
The UL_Image_Generation_JoyType_Font_Img
node is designed to facilitate the creation of images with custom text and font settings, allowing you to generate visually appealing text-based graphics. This node is particularly useful for AI artists who want to incorporate text into their artwork with specific font styles, colors, and backgrounds. By leveraging this node, you can easily customize the appearance of text in your images, choosing from a variety of font colors and background options. The node's primary function is to render text onto an image canvas, providing flexibility in terms of font selection and color customization, which can enhance the overall aesthetic of your digital creations.
The params
parameter is a dictionary that contains the configuration settings for the text rendering process. It includes details such as the size of the image and a list of text elements to be rendered, each with its associated font and mask. This parameter is crucial as it dictates how the text will be displayed on the image, allowing you to specify multiple text elements and their respective styles.
The font_color_name
parameter allows you to select a predefined color name for the font. This option is useful if you prefer to use standard color names instead of specifying color codes. The default value is "white," and you can choose from a list that includes "transparent" and other color names supported by the Pillow library.
The font_color_code
parameter is a string that represents the color of the font in hexadecimal format. This option provides precise control over the font color, allowing you to specify any color by its hex code. The default value is an empty string, and you can input any valid hex color code to customize the font color.
The font_color_mode
parameter is a boolean that determines whether the font color is specified by name or by code. When set to True
, the color is selected by name; when set to False
, the color is specified by code. This parameter provides flexibility in how you choose to define the font color, catering to different preferences for color specification.
The bg_color_name
parameter allows you to select a predefined color name for the background. Similar to font_color_name
, this option is useful for using standard color names. The default value is "transparent," and you can choose from a list of color names supported by the Pillow library.
The bg_color_code
parameter is a string that represents the background color in hexadecimal format. This option allows for precise control over the background color, enabling you to specify any color by its hex code. The default value is "00ffdd," and you can input any valid hex color code to customize the background color.
The bg_color_mode
parameter is a boolean that determines whether the background color is specified by name or by code. When set to True
, the color is selected by name; when set to False
, the color is specified by code. This parameter provides flexibility in how you choose to define the background color, catering to different preferences for color specification.
The font_color_codeR
parameter is an integer that specifies the red component of the font color when using RGB color codes. It ranges from -1 to 255, with a default value of -1. This parameter is part of the RGB color specification, allowing you to fine-tune the red component of the font color.
The font_color_codeG
parameter is an integer that specifies the green component of the font color when using RGB color codes. It ranges from 0 to 255, with a default value of 0. This parameter is part of the RGB color specification, allowing you to fine-tune the green component of the font color.
The font_color_codeB
parameter is an integer that specifies the blue component of the font color when using RGB color codes. It ranges from 0 to 255, with a default value of 0. This parameter is part of the RGB color specification, allowing you to fine-tune the blue component of the font color.
The font_color_codeA
parameter is an integer that specifies the alpha (transparency) component of the font color when using RGBA color codes. It ranges from 0 to 255, with a default value of 0. This parameter allows you to control the transparency of the font color, enabling effects such as semi-transparency.
The canny_image
output is an image that represents the result of applying a Canny edge detection algorithm to the rendered text image. This output is useful for identifying the edges of the text, which can be used for further image processing or artistic effects.
The font_image
output is the final rendered image containing the text with the specified font and background settings. This image is the primary output of the node, showcasing the text as configured by the input parameters. It can be used directly in your artwork or as a base for further modifications.
font_color_mode
and bg_color_mode
parameters to switch between color names and codes, depending on your preference for specifying colors.font_color_codeA
parameter to create interesting transparency effects, such as overlaying text on complex backgrounds.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.