Orb Layer
Orb layers bring the elegant simplicity of circles and ellipses to your Component.Studio designs. Whether you need a perfect circle, a stretched oval, or anything in between, orb layers provide smooth, curved shapes that work beautifully as icons, decorative elements, backgrounds, buttons, and badges. With the same powerful fill and border options as box layers but without the complexity of corners, orbs are your go-to choice whenever you need a curved, organic shape.
Position and Size
Like all layers, orbs start with fundamental positioning and sizing controls. These properties determine where your orb appears and its dimensions.
| Property | Description |
|---|---|
| X Position | Horizontal position in pixels from the origin point |
| Y Position | Vertical position in pixels from the origin point |
| Width | Width of the orb's bounding box in pixels (horizontal diameter for circles) |
| Height | Height of the orb's bounding box in pixels (vertical diameter for circles) |
| Rotation | Rotation angle in degrees (0-360) |
| Anchor | The reference point for positioning (top-left, center, etc.) |
Common Orb Dimensions
- 50x50: Small icon or bullet point
- 100x100: Medium badge or button
- 200x100: Horizontal pill shape
- 100x200: Vertical oval
- 400x400: Large decorative circle
Fill Properties
The fill determines what your orb looks like on the inside. Orbs support the same versatile fill options as box layers, from simple solid colors to complex gradients.
Fill Types
| Fill Type | Description | Best For |
|---|---|---|
| None | No fill - transparent interior | Ring shapes, hollow badges, outline-only designs |
| Color | Solid color fill using Fill Color 1 | Simple badges, colored dots, solid design elements |
| Texture | Repeating image pattern from a URL | Patterned orbs, textured backgrounds, decorative fills |
| Horizontal | Left-to-right gradient between two colors | Directional emphasis, side-to-side transitions |
| Vertical | Top-to-bottom gradient between two colors | Depth effects, vertical dimension, spherical lighting effects |
| Diagonal | Top-left to bottom-right gradient | Dynamic effects, angled lighting, modern aesthetics |
| Radial | Center-to-edge circular gradient | 3D sphere effects, glowing orbs, spotlight circles, realistic spheres |
Fill Properties
| Property | Range | Description |
|---|---|---|
| Fill Opacity | 0-100% | Controls transparency of the fill. 0 is invisible, 100 is fully opaque. |
| Fill Color 1 | Hex color | The primary color for solid fills, or the starting color for gradients |
| Fill Color 2 | Hex color | The ending color for gradient fills (horizontal, vertical, diagonal, radial) |
| Color Stop 1 | 0-100% | Position where the first color begins in the gradient (default 0) |
| Color Stop 2 | 0-100% | Position where the second color ends in the gradient (default 100) |
| Fill Texture | URL | Image URL for texture fills - the image repeats to fill the orb |
Creating a 3D Sphere Effect
To make your orb look like a three-dimensional sphere:
- Set Fill Type to "radial"
- Set Fill Color 1 to a light version of your desired color (like #88ccff for light blue)
- Set Fill Color 2 to a darker version (like #1166aa for darker blue)
- Adjust Color Stop 1 to around 20-30 to keep the highlight concentrated near the center
- Keep Color Stop 2 at 100
This creates a sphere that looks like it's lit from above and in front.
Creative Color Stop Examples
- Tight center glow (radial): Color Stop 1 = 0, Color Stop 2 = 40. Creates a bright center that quickly fades to the edge color.
- Ring effect (radial): Color Stop 1 = 60, Color Stop 2 = 80. Creates a ring of transition with solid colors in center and edge.
- Off-center highlight: Use a horizontal or vertical gradient with Color Stop 1 = 20, Color Stop 2 = 60 for asymmetric lighting effects.
Border Properties
Borders add definition and visual weight to your orbs. The curved border follows the elliptical or circular shape perfectly.
Border Types
| Border Type | Description |
|---|---|
| None | No border at all |
| Color | Solid color border using the Border Color property |
| Texture | Image-based border - the image repeats along the curved border path |
Border Controls
| Property | Range | Description |
|---|---|---|
| Thickness | 0-9999px | Width of the border in pixels |
| Border Color | Hex color | Color of the border (when Border Type is "color") |
| Border Opacity | 0-100% | Transparency of the border. 0 is invisible, 100 is fully opaque. |
| Border Alignment | 0-100% | Where the border sits relative to the orb edge: 0 = inside (border grows inward) 50 = center (border straddles the edge) 100 = outside (border grows outward) |
| Border Texture | URL | Image URL for texture borders |
Understanding Border Alignment on Circles
Border alignment works the same way on orbs as it does on boxes, but the visual effect is slightly different because of the curved shape:
- Inside (0%): The border curves inward, making the orb's interior smaller. A 200x200 orb with a 10px inside border has a 180x180 interior fill.
- Center (50%): The border is split evenly - half inside, half outside the specified dimensions. This is the most visually balanced for most designs.
- Outside (100%): The border curves outward beyond the orb dimensions. A 200x200 orb with a 10px outside border visually takes up 210x210 pixels of space.
Visual Effects
Orb layers support the complete Component.Studio effects pipeline. These effects can transform simple circles into stunning visual elements.
| Effect | Purpose |
|---|---|
| Drop Shadow | Cast a shadow beneath the orb to lift it off the page. Particularly effective for creating floating sphere effects. |
| Color Overlay | Tint the entire orb with a semi-transparent color. Great for quick color adjustments or themed variations. |
| Blur | Apply gaussian blur to soften the orb. Perfect for background bokeh effects or soft glows. |
| Glow | Add a soft outer glow around the orb. Combine with radial gradients for stunning energy sphere effects. |
| Outline | Add a sharp outline around the orb silhouette. Different from borders, outlines always follow the outer edge. |
| Color Adjust | Fine-tune brightness, contrast, saturation, and other color properties of the entire orb. |
Glowing Energy Orb Recipe
Create a magical glowing orb perfect for game elements or sci-fi designs:
- Create a 150x150 orb
- Fill Type: Radial gradient
- Fill Color 1: Bright cyan (#00ffff)
- Fill Color 2: Deep blue (#0033aa)
- Color Stop 1: 0, Color Stop 2: 70
- Enable Glow effect
- Glow Color: Same cyan (#00ffff)
- Glow Distance: 20
- Glow Outer Strength: 6
Result: A bright cyan orb that appears to emit its own light!
Working with Orb Layers
Common Use Cases
Status Indicators and Badges
Small solid-color orbs (20x20 to 40x40) make excellent status indicators. Use green for active, red for error, yellow for warning, gray for inactive. Place them in corners of cards or next to text labels. The circular shape naturally draws the eye without being intrusive.
Avatar Placeholders
Create circular avatar frames with a 100x100 or 150x150 orb. Use a no-fill orb with a thick colored border to frame profile images, or use a solid color orb as a placeholder when no image is available. Add centered text with initials for a classic avatar treatment.
Decorative Elements
Scatter small orbs with varied sizes and colors across a design as decorative accents. Use low opacity (20-40%) and radial gradients for subtle background elements. Large orbs with texture fills can create interesting background patterns when overlapped.
Button Shapes
Pill-shaped buttons are created with orbs that have different width and height values. A 200x60 orb with a solid fill creates a classic pill button shape. Add text on top (use the "Add Text to Orb" button) and a subtle drop shadow for a complete button design.
Adding Text to Orbs
Orb layers include an "Add Text to Orb" button that automatically creates a text layer centered within the orb. This is incredibly useful for:
- Badge numbers: Small numbers on notification badges
- Icon labels: Letters or symbols centered in circular icons
- Initials: Two-letter initials for avatar placeholders
- Button text: Labels on pill-shaped buttons
The text automatically starts with center horizontal alignment and middle vertical alignment, ensuring perfect centering within the orb shape.
Dynamic Orb Designs
Like all Component.Studio layers, orbs become incredibly powerful when combined with template variables:
- Status colors: Use
{{row.statusColor}}in Fill Color 1 to make orb colors match data status (green for healthy, red for critical, etc.) - Variable sizing: Use
{{row.importanceLevel * 20}}in both Width and Height to create orbs that scale based on data values - Team colors: Use dataset values to pull team colors, making each card's orbs match team branding
Rotation and Orbs
Performance Considerations
Orb layers are very efficient to render. The ellipse shape is drawn using PIXI.js graphics primitives, which are fast and lightweight. Even designs with dozens of orbs render smoothly.
- Gradients are efficient: Radial, horizontal, vertical, and diagonal gradients are generated programmatically and cached. Use them freely.
- Textures require loading: If using texture fills or borders, remember that each unique URL requires loading an image. Reuse textures when possible.
- Effects stack: Multiple effects on a single orb increase rendering complexity slightly, but it's rarely noticeable unless you have hundreds of orbs each with many effects.
Design Tips and Best Practices
General Orb Design Tips
- Odd numbers look better: When placing multiple orbs, odd numbers (3, 5, 7) often look more balanced than even numbers.
- Size variety creates interest: Don't make all orbs the same size. Vary diameters to create visual hierarchy and rhythm.
- Use radial gradients liberally: Radial gradients are almost always more interesting on orbs than solid colors, and they're just as efficient.
- Mind your borders: Very thick borders on very small orbs can overwhelm the shape. Keep border thickness proportional to orb size.
- Center alignment is your friend: When positioning orbs, center anchor points often work better than corner anchors because the orb is drawn from its center.
- Layer orbs for depth: Overlapping orbs of different sizes and opacities creates beautiful depth effects, especially for backgrounds.
Color Combinations That Work
Classic Sphere (3D effect)
- Fill Type: Radial
- Fill Color 1: #ffffff (white)
- Fill Color 2: #4488cc (medium blue)
- Color Stop 1: 15, Color Stop 2: 100
Energy Glow (sci-fi effect)
- Fill Type: Radial
- Fill Color 1: #ffff00 (bright yellow)
- Fill Color 2: #ff6600 (orange)
- Color Stop 1: 0, Color Stop 2: 60
- Plus outer glow effect in matching yellow
Soft Badge (subtle indicator)
- Fill Type: Radial
- Fill Color 1: #ccffcc (pale green)
- Fill Color 2: #44aa44 (forest green)
- Fill Opacity: 80
- Border Type: Color, Border Color: #44aa44, Thickness: 2
Troubleshooting
My orb isn't perfectly round
Check that Width and Height are exactly the same value. Even a difference of 1 pixel will create an ellipse instead of a circle. Use the same value for both properties to guarantee perfect circularity.
My gradient looks wrong or unexpected
- For sphere effects, make sure you're using Radial gradient, not horizontal or vertical
- Check your Color Stop values - if they're very close together, the gradient will be abrupt rather than smooth
- Verify Fill Color 1 and Fill Color 2 are actually different colors
- Try adjusting Color Stop 1 to a value between 0-30 for typical center-highlight effects
My border looks too thick or thin
- Border thickness is in pixels - adjust the value up or down
- For small orbs (under 50px), keep borders thin (1-3px)
- For medium orbs (50-150px), borders of 3-8px usually work well
- For large orbs (over 150px), you can use thicker borders (8-20px)
- Check Border Alignment - changing from center to inside/outside affects the visual thickness
Rotation doesn't seem to do anything
If your orb is a perfect circle with a radial gradient or solid fill, rotation won't produce any visible change because the shape and fill are symmetrical in all directions. Rotation will be visible on ellipses with directional gradients (horizontal, vertical, diagonal) or if there are child layers like text inside the orb.
My texture fill looks distorted
Textures repeat to fill the orb shape. If your orb is an ellipse (not a circle), the texture will be stretched to match the elliptical shape, which can cause distortion. For best texture results, use circular orbs (equal width and height) or choose textures that work well when stretched.
Orb layers bring curves and softness to your Component.Studio designs. From tiny status dots to large decorative circles, from simple solid colors to complex radial gradients, orbs are versatile building blocks for beautiful designs. Experiment with gradients, embrace the curves, and have fun creating!