progressBarASCII ( completePct ; totalBlocks ; colorBar ; colorBackground ; fontSize ; showPercent )
Renders a colored text-based progress bar using hex colors, font size, and percentage, with optional percent label.
Be the first to rate this function Log in to vote
Jonni™ - Show more from this author |
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
This custom function generates a visual progress bar composed of block characters (█) based on a given percentage. It accepts hex color codes for the foreground (completed portion) and background (remaining portion), converts them to RGB, and styles the result using TextColor and TextFontSize. The percentage is rounded up to the nearest 10% to determine block count, and an optional flag controls whether to display the numeric percentage after the bar.
Simple and effective. Suits for layout calculations.
Comments
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.