Generate Asymmetric Cantor Set
Create an asymmetric Cantor set by tuning the left and middle removal ratios.
Size, Iterations and Parameters
Fractal Colors
Padding and Direction
Output (Asymmetric Cantor Set)
What It Does
Create an asymmetric Cantor set by tuning the left and middle removal ratios.
Common Use Cases
- Study non-uniform Cantor constructions
- Generate asymmetric line fractals
- Compare symmetric vs asymmetric gap patterns
How to Use
- Set canvas size and iteration count
- Enter alpha and gamma ratios
- Pick colors, padding, and direction
Features
- Custom alpha and gamma parameters
- Direction and squeeze options
- Line width and barcode mode
Edge Cases
- Very large inputs can still stress the browser, especially when the tool is working across many numbers. Split huge jobs into smaller batches if the page becomes sluggish.
- Empty or whitespace-only input is technically valid but may produce unchanged output, which can look like a failure at first glance.
- If the output looks wrong, compare the exact input and option values first, because Generate Asymmetric Cantor Set should be repeatable with the same settings.
Troubleshooting
- Unexpected output often means the input is being split or interpreted at the wrong unit. For Generate Asymmetric Cantor Set, that unit is usually numbers.
- If a previous run looked different, check for hidden whitespace, changed separators, or a setting that was toggled accidentally.
- If nothing changes, confirm that the input actually contains the pattern or structure this tool operates on.
- If the page feels slow, reduce the input size and test a smaller sample first.
Frequently Asked Questions
What do alpha and gamma parameters control?
Alpha controls the length of the left segment (as a fraction of the parent), and gamma controls the size of the removed middle section. The right segment is automatically 1 - alpha - gamma. Both must be positive, and alpha + gamma must be less than 1.
How many iterations should I use?
Start with 4-6 iterations for quick exploration. Higher iterations (8-12) reveal finer fractal details but may slow rendering. The fractal pattern becomes infinitely detailed in theory, but visual displays have resolution limits.
What is barcode mode?
Barcode mode displays only the final iteration stretched vertically to fill the canvas, creating a barcode-like appearance. This view emphasizes the distribution of final segments without showing intermediate iterations.
What is squeeze mode?
Squeeze mode removes vertical spacing between iterations, compressing all iterations together. This provides a denser view showing how segments evolve across iterations without the spacing typically used for clarity.
Can I save or export the generated fractal?
Yes, you can right-click the canvas and save the image in your browser. The fractal is rendered directly to an HTML canvas element, making it easy to save as PNG or other standard image formats.
Why can't alpha + gamma equal or exceed 1?
If alpha + gamma >= 1, there's no room for the right segment (it would have zero or negative length), making the construction mathematically invalid. The constraint alpha + gamma < 1 ensures all three sections (left, middle-removed, right) have positive length.