Skip to content

v2: progress.WithScaledGradient results in random color, not from gradient #808

@lrstanley

Description

@lrstanley

Describe the bug
When utilizing progress.WithScaledGradient() with bubbles v2 (v2.0.0-beta.1), the generated gradient results in the below reproduction as a random green color, as a sub-portion of the gradient.

Setup

  • OS: Ubuntu (WSL2)
  • Shell: Bash
  • Terminal Emulator: Windows Terminal (also replicates inside of VHS)
  • Terminal Multiplexer: n/a
  • Locale: en_US.UTF-8

To Reproduce

  1. Run the following example here: https://github.com/lrstanley/bubbletint/blob/v2-exp/examples/package-manager/main.go#L39
  • theme.BrightPurple.Hex() == "#fc874f"
  • theme.BrightBlue.Hex() == "#ffbe55"

Source Code
https://github.com/lrstanley/bubbletint/tree/v2-exp/examples/package-manager

Expected behavior
Would expect a clean gradient transition between two colors.

Screenshots
Image

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions