You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would allow doing gradient.take(n).rev() without collecting. My main reasoning for that is basically because for lower values of n (1 or 2), gradient.take(n) is a bit skewed to the first colors of the gradient.
The text was updated successfully, but these errors were encountered:
Makes sense to me. I see no reason why it wouldn't be double ended.
As for the skewing, I suspect there may have been a mistake when it was implemented and that the last stop is not at the very end of the gradient. That should be fixed.
154: Add DoubleEndedIterator impl for gradient::Take r=Ogeon a=jansegre
`gradient.take(n).rev()` is now possible, closes#153
Co-authored-by: Jan Segre <jan@segre.in>
Would allow doing
gradient.take(n).rev()
without collecting. My main reasoning for that is basically because for lower values ofn
(1 or 2),gradient.take(n)
is a bit skewed to the first colors of the gradient.The text was updated successfully, but these errors were encountered: