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

requestAnimationFrame support #18

Open
andygill opened this issue Jun 26, 2014 · 3 comments
Open

requestAnimationFrame support #18

andygill opened this issue Jun 26, 2014 · 3 comments

Comments

@andygill
Copy link
Member

Support accessing the requestAnimationFrame concepts from blank canvas.

@andygill andygill added this to the blank canvas 0.5 milestone Jun 26, 2014
@andygill
Copy link
Member Author

Do we use

requestAnimationFrame :: Canvas a -> Canvas a

or

requestAnimationFrame : Canvas ()

or

requestAnimationFrame :: Context -> Canvas a -> IO a

@andygill
Copy link
Member Author

There is another possible:

requestAnimationFrame :: Canvas Float 

where Float is the time in seconds since the last requestAnimationFrame, or a get-time-of-day counter.

@nomeata
Copy link
Contributor

nomeata commented Aug 10, 2016

I could use this function for my current project.

nomeata added a commit to nomeata/codeworld that referenced this issue Aug 10, 2016
the spring example works now!

Currently, there is a fixed delay of 50ms;
with ku-fpg/blank-canvas#18 fixed we could do
the same as CodeWorld is doing here.

Missing now: Event handling.
nomeata added a commit to nomeata/codeworld that referenced this issue Aug 11, 2016
the spring example works now!

Currently, there is a fixed delay of 50ms;
with ku-fpg/blank-canvas#18 fixed we could do
the same as CodeWorld is doing here.

Missing now: Event handling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants