Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lineargradient ignores all but first and last defined colorstop #40

Open
krayj opened this issue Aug 28, 2021 · 2 comments
Open

lineargradient ignores all but first and last defined colorstop #40

krayj opened this issue Aug 28, 2021 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@krayj
Copy link

krayj commented Aug 28, 2021

observed on release version: v 0.9.0

[repro]

  1. set horseshoe fill style to use: lineargradient
  2. provide a list of numerous (several more than 2) colorstops

[result]

  1. the gradient is created using only the first and last defined colorstop, none of the in-between colorstop colors are used or displayed

[expect]

  1. multiple defined colorstops should result in multiple gradients between each of the defined colorstop values
@skarchmit
Copy link

I agree with this one, but the documentation currently states that only the first and last are used. I wish it were the case as you described.

@krayj
Copy link
Author

krayj commented Oct 18, 2022

LOL. When I originally wrote that (over a year ago) the documentation and even the example code showed more than 2 color gradients in use...and working, and more than 2 were working in earlier versions. I wrote that bug due to an observed regression in behavior.

In the time since, the documentation was modified to match the new flawed behavior. Weird way to fix a bug, but OK.

@AmoebeLabs AmoebeLabs added enhancement New feature or request good first issue Good for newcomers labels May 3, 2023
@AmoebeLabs AmoebeLabs added this to the Ideas to Investigate milestone May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants