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

shadow_wake with color #126

Closed
EmilHvitfeldt opened this issue Aug 5, 2018 · 2 comments
Closed

shadow_wake with color #126

EmilHvitfeldt opened this issue Aug 5, 2018 · 2 comments

Comments

@EmilHvitfeldt
Copy link

In much the same way that shadow_wake allows for objects to be left in the animation for some time with varying transformation to the size and shape. It would be useful if the same thing could be done with colors.

Example have colors appear in red but wake to yellow before disappearing.

# Mock code
data.frame(x = seq_len(150),
           y = seq_len(150)) %>%
  ggplot(aes(x, y)) +
  geom_point() +
  transition_time(y) +
  shadow_wake(wake_length = 0.15, colors = c("yellow", "red"))

@thomasp85
Copy link
Owner

I think the reason for me not doing it (I remember considering it) was that every part of the wake might have a different starting colour and thus a separate interpolation to the end color requiring excessive calculations for the effect. I'll look into it again as I agree it would be nice...

@davechristianson
Copy link

I agree, I was just looking into this and looking at whether or not the wake could also match the same scale_color_gradient defined for the point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants