Frame
Description
The Frame node is a visual annotation tool with no execution behavior. It displays a resizable colored panel with a text label, used to group and describe a set of nodes on the canvas. It helps organize complex workflows by visually clustering related nodes together (e.g., "AI Processing Pipeline", "File I/O Section", "Data Transformation").
Frames are pinned to the background layer by default and can be resized interactively. They support custom colors, transparency (alpha blending), and adjustable font sizes for the label text.
Configuration Properties
🎨 Color Section
Pick Color Button
Opens a standard Windows Color Dialog to select the frame's background color.
Color Preview Box
Displays the currently selected color in real-time.
Custom Colors
The Color Dialog automatically maintains a history of recently used colors in its "Custom Colors" section. This allows you to quickly reuse colors across multiple frames without having to manually re-select them each time. Perfect for maintaining a consistent color scheme throughout your workflow (e.g., all AI nodes in blue, all file operations in yellow, all data processing in green).
Font Size Section
NumericUpDown (default: 14)
Sets the font size (in points) for the frame's title text. Larger values make the label more prominent, useful for high-level section headers. Smaller values are better for compact annotations.
🔒 Additional Properties (Canvas Context Menu)
While not in the config dialog, frames also expose these properties via right-click context menu or direct manipulation:
Width / Height
The frame's dimensions in pixels. Can be adjusted by dragging the resize handle (bottom-right corner when unpinned).
Pinned
When pinned (IsPinned = True), the frame acts as a background layer:
- Mouse clicks pass through to the canvas (no accidental dragging)
- The frame is rendered behind regular nodes
- A pin icon appears in the top-right corner
When unpinned, the frame can be moved and edited normally.
Usage Example
"Organizing a Game Asset Generation Pipeline":
-
Create a Frame node with:
- Color: Light Blue
- Font Size:
16 - Title: "Concept Generation"
- Position it to cover an Agent node and a Memory Write node.
-
Create a second Frame node with:
- Color: Light Green
- Font Size:
16 - Title: "Asset Detailing"
- Position it to cover a Sequencer node and multiple Agent nodes.
-
Create a third Frame node with:
- Color: Light Yellow
- Font Size:
14 - Title: "Export & Save"
- Position it to cover File Write nodes.
The workflow is now visually organized into three distinct phases, making it easier to understand at a glance.
Pitfalls to Avoid
⚠️ Frames don't affect execution: Frames are purely visual. They do not group nodes logically or affect execution order. Moving a frame does not move the nodes inside it — you must move nodes individually or use multi-selection.
️ Transparency is simulated: WinForms does not support true transparency for child controls. The frame's alpha blending is achieved by manually calculating the flattened color (mixing the frame color with the canvas background color). This means the frame will not blend with nodes behind it — only with the canvas background.
⚠️ Custom colors are session-only: The recently used colors are stored in memory during the application session. They are not persisted to disk, so they will be lost when you close TzuFlow. If you have a specific color palette you use frequently, note down the RGB values somewhere.
⚠️ Pinned frames can't be edited directly: When a frame is pinned, you cannot move it or resize it by dragging. You must unpin it first (click the pin icon or use the context menu), make your changes, then pin it again.
⚠️ Z-order matters: Frames are always sent to the back when created. If you create a frame after placing nodes, the frame will appear behind them. If you want the frame to visually contain nodes, create the frame first, then place nodes on top of it.
💡 Tips
- Color-coding convention: Establish a consistent color scheme for your workflows:
- Blue tones: AI/LLM processing nodes
- Green tones: Data input/output nodes
- Yellow/Orange: Control flow nodes (Switch, Sequencer, Iterator)
- Purple: File operations
- Gray: Utility/annotation nodes
Layering frames: You can create nested frames by placing a smaller frame inside a larger one. Use different colors or alpha values to distinguish the layers.
Temporary grouping: Use frames during the design phase to experiment with workflow organization, then delete them once the structure is finalized if you prefer a cleaner canvas.