Generated reference · ComfyUI workflow · Fractal & generative math

Barnsley Fern Generator

Generate artistic renderings of the Barnsley fern and related IFS fractals

Fractal & generative math10nodesGPU A5000out image~35sv1.0.0

On this page
10Graph nodes
8Node classes
16Inputs
2Models

Tags: barnsleyfernifsfractalnaturebotanical

Inputs (16)#

The typed parameter surface callers bind when they request this workflow. Enum options and numeric bounds are the values the workflow document declares.

fern_variantenumdefault classic_barnsley
Fern variant or IFS type
options: classic_barnsleythelypteriscyclosorusmodified_stemculcitafishbonespiral_ferncustom_ifs
color_schemeenumdefault natural_green
Color scheme
options: natural_greenautumnfrosttropicalbioluminescentgoldenshadowrainbow
rendering_styleenumdefault density
Rendering style
options: point_clouddensitygradient_fillwatercolorpen_inkphotorealistic
backgroundenumdefault dark
Background style
options: whitedarkforest_floormistycosmicgradient
frond_countenumdefault single
Number of fern fronds
options: singlepairclusterforest
artistic_enhancementbooleandefault true
Apply artistic AI enhancement
include_unfurlingbooleandefault false
Include fiddlehead unfurling stages
detail_levelenumdefault high
Iteration/detail level
options: lowmediumhighultra
seedintegerdefault -1
Random seed
widthintegerdefault 1024
Output width
heightintegerdefault 1024
Output height
stepsintegerdefault 35
Sampling steps
cfg_scalefloatdefault 7.5
CFG scale
hires_fixbooleandefault true
Two-pass detail refinement: 1.5x latent upscale + low-denoise second sampling pass
freeubooleandefault true
FreeU v2 backbone re-weighting (family-tuned b1/b2/s1/s2)
checkpointenumdefault sdxl_base
SDXL checkpoint: curated photoreal finetune (default) or base 1.0
options: realvis_xl_v5sdxl_base

ComfyUI node graph (10)#

The executable ComfyUI prompt graph: 10 nodes across 8 distinct node classes, wired by 15 data dependencies. Nodes tinted green come from a custom node pack this workflow declares; the rest are ComfyUI core / baked-community classes.

flowchart TD n0["1: CheckpointLoaderSimple"] n1["2: CLIPTextEncode"] n2["3: CLIPTextEncode"] n3["4: EmptyLatentImage"] n4["5: KSampler"] n5["6: VAEDecode"] n6["7: SaveImage"] n7["freeu: FreeU_V2"] n8["hires_upscale: LatentUpscaleBy"] n9["hires_sampler: KSampler"] n0 -->|clip| n1 n0 -->|clip| n2 n7 -->|model| n4 n1 -->|positive| n4 n2 -->|negative| n4 n3 -->|latent_image| n4 n9 -->|samples| n5 n0 -->|vae| n5 n5 -->|images| n6 n0 -->|model| n7 n4 -->|samples| n8 n7 -->|model| n9 n1 -->|positive| n9 n2 -->|negative| n9 n8 -->|latent_image| n9
Data-flow DAG — scroll to zoom, drag to pan.

Nodes (10)#

1CheckpointLoaderSimplecore
ckpt_name = {{checkpoint_files[checkpoint]}} tmpl
outputs: MODELCLIPVAE
2CLIPTextEncodecore
text = {{constructed_prompt}} tmplclip = ◂ node 1 · out[1]
outputs: CONDITIONING
3CLIPTextEncodecore
text = blurry, low quality, ugly, simple drawing, stick figure, non-fractal, text watermark, human facesclip = ◂ node 1 · out[1]
outputs: CONDITIONING
4EmptyLatentImagecore
width = {{width}} tmplheight = {{height}} tmplbatch_size = 1
outputs: LATENT
5KSamplercore
model = ◂ node freeu · out[0]positive = ◂ node 2 · out[0]negative = ◂ node 3 · out[0]latent_image = ◂ node 4 · out[0]seed = {{seed}} tmplsteps = {{steps}} tmplcfg = {{cfg_scale}} tmplsampler_name = dpmpp_2m_sdescheduler = karrasdenoise = 1.0
outputs: LATENT
6VAEDecodecore
samples = ◂ node hires_sampler · out[0]vae = ◂ node 1 · out[2]
outputs: IMAGE
7SaveImagecore
images = ◂ node 6 · out[0]filename_prefix = barnsley_fern
freeuFreeU_V2core
model = ◂ node 1 · out[0]b1 = 1.1b2 = 1.2s1 = 0.6s2 = 0.4
outputs: MODEL
hires_upscaleLatentUpscaleBycore
samples = ◂ node 5 · out[0]upscale_method = bislerpscale_by = 1.5
outputs: LATENT
hires_samplerKSamplercore
model = ◂ node freeu · out[0]positive = ◂ node 2 · out[0]negative = ◂ node 3 · out[0]latent_image = ◂ node hires_upscale · out[0]seed = {{seed}} tmplsteps = 14cfg = {{cfg_scale}} tmplsampler_name = dpmpp_2mscheduler = karrasdenoise = 0.45
outputs: LATENT

Prompt construction#

template
Barnsley fern fractal art, {fern_prompt}, {color_prompt}, {rendering_prompt}, {background_prompt}, {frond_prompt}, {detail_prompt}{artistic_clause}{unfurling_clause}, IFS iterated function system, mathematical nature, self-similar pattern, botanical fractal, highly detailed

Variables (8)#

fern_prompt
{{fern_prompts[fern_variant]}} tmpl
color_prompt
{{color_prompts[color_scheme]}} tmpl
rendering_prompt
{{rendering_prompts[rendering_style]}} tmpl
background_prompt
{{background_prompts[background]}} tmpl
frond_prompt
{{frond_prompts[frond_count]}} tmpl
detail_prompt
{{detail_prompts[detail_level]}} tmpl
artistic_clause
{{', AI artistically enhanced, painterly quality, aesthetic refinement' if artistic_enhancement else ''}} tmpl
unfurling_clause
{{', fiddlehead spiral unfurling, growth stages, fibonacci spiral' if include_unfurling else ''}} tmpl

Parameter banks (6)#

The prompt / configuration lookup tables this workflow keys into from its inputs — the vocabulary that turns a style / palette / preset selection into graph parameters.

fern_prompts (8)#

classic_barnsley
classic Barnsley fern, mathematical fern, IFS fractal, perfect self-similarity, elegant natural mathematics
thelypteris
Thelypteris fern variant, marsh fern parameters, broader fronds, wetland fern appearance
cyclosorus
Cyclosorus fern variant, tropical fern parameters, lush growth, rainforest fern
modified_stem
modified stem fern, altered stem probability, unique branching, experimental parameters
culcita
Culcita fern variant, tree fern parameters, ancient appearance, prehistoric feel
fishbone
fishbone fern pattern, Nephrolepis style, regular pinnae, symmetrical fronds
spiral_fern
spiral fern variation, twisted growth, helical pattern, unusual geometry
custom_ifs
custom IFS parameters, experimental fractal, unique attractor, mathematical exploration

color_prompts (8)#

natural_green
natural fern green, forest green, emerald fronds, chlorophyll colors, living plant
autumn
autumn fern colors, golden brown, dying fronds, seasonal change, warm decay
frost
frost-covered fern, ice blue white, frozen delicate, winter crystalline
tropical
tropical vibrant green, jungle fern, lush saturated, rainforest vitality
bioluminescent
bioluminescent fern, glowing blue green, deep sea glow, magical light emission
golden
golden fern, precious metal, gilded fronds, valuable treasure, amber gold
shadow
shadow silhouette fern, dark contrast, dramatic lighting, noir botanical
rainbow
rainbow colored fern, prismatic fronds, color spectrum, fantastical botanical

rendering_prompts (6)#

point_cloud
point cloud rendering, individual iteration points, scattered dots, mathematical plot
density
density rendering, accumulation coloring, brightness by frequency, smooth gradient
gradient_fill
gradient filled rendering, smooth color transitions, filled shapes, polished appearance
watercolor
watercolor painting style, wet media, soft edges, artistic botanical illustration
pen_ink
pen and ink style, fine linework, botanical illustration, detailed drawing
photorealistic
photorealistic fern, actual plant appearance, photography quality, natural specimen

background_prompts (6)#

white
clean white background, scientific illustration, pure contrast
dark
dark black background, dramatic contrast, specimen display, elegant darkness
forest_floor
forest floor background, leaf litter, moss, natural habitat, woodland scene
misty
misty fog background, atmospheric haze, mysterious forest, ethereal mood
cosmic
cosmic space background, fern in space, surreal juxtaposition, mathematical universe
gradient
smooth gradient background, subtle color transition, professional presentation

frond_prompts (4)#

single
single fern frond, solitary specimen, focused study, individual beauty
pair
pair of fern fronds, two fronds, mirror arrangement, balanced composition
cluster
cluster of fern fronds, multiple specimens, natural grouping, botanical variety
forest
forest of fern fronds, many overlapping, dense growth, fern carpet

detail_prompts (4)#

low
low iteration, basic form visible, structural outline
medium
medium iteration, clear self-similarity, recognizable detail
high
high iteration, fine pinnae detail, intricate structure, beautiful complexity
ultra
ultra high iteration, maximum detail, finest structures visible, perfect rendering

Models & dependencies#

Checkpoint aliases (2)#

realvis_xl_v5
RealVisXL_V5.0_fp16.safetensors
sdxl_base
sd_xl_base_1.0.safetensors

Models required (2)#

RealVisXL_V5.0_fp16.safetensors
sd_xl_base_1.0.safetensors

Output contract#

What a successful run of this workflow returns.

type
image
format
png
channels
4

Taxonomy & routing#

How the control plane classifies this workflow — from the committed workflow-taxonomy-registry.json. It drives the consistency / control surface the agentic director can exercise over the workflow.

assetFamily
mkt-campaign-key-visual-suite
outputPackageProfile
image-single-profile
controlModalities
camera-lockcolor-script-lockdepth-constraintidentity-adapterlatent-reusemodel-lockpalette-lockpose-constraintprompt-template-lockreference-ensemblesampler-scheduler-lockscene-lockseed-lockstyle-anchorstyle-locktemporal-lock +1 more
consistencyDimensions
lightingcolor-script
notes
Auto-mapped from fractal defaults