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

Can I display animations? #293

Closed
AnthonyJacob opened this issue Jun 12, 2016 · 1 comment
Closed

Can I display animations? #293

AnthonyJacob opened this issue Jun 12, 2016 · 1 comment

Comments

@AnthonyJacob
Copy link

AnthonyJacob commented Jun 12, 2016

This code should update image every frame, but does not.

using Reactive, Interact, Compose, IJulia

function drawball(t)
  y = 1-abs(sin(t)) # The y coordinate.
  compose(context(), circle(0.5, y, 0.04)) # draw a circle
end

ticks = fps(60)
timestamps = map(_ -> time(), ticks)
map(drawball, timestamps)

Instead it just shows one non moving image, and you have to run the code again to see progress.
(It works in notebook but not in atom)

@n-riesco
Copy link
Collaborator

This is not possible at the moment. Atom's CSP policy changed in v1.6.0 and injected scripts aren't allowed.

We have issue #27 opened to track this feature.

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

2 participants