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

Time Interface discussion #53

Open
leios opened this issue Jan 18, 2023 · 0 comments
Open

Time Interface discussion #53

leios opened this issue Jan 18, 2023 · 0 comments

Comments

@leios
Copy link
Owner

leios commented Jan 18, 2023

Right now, the time interface in Fae.jl is a bit sticky, but I am honestly not sure the right abstraction to use here. For now, I like the following:

  1. Users can use Floats, Ints, or Unitful quantities (of time) to specify their current time during any visualization
  2. We are able to pass a frame argument to each FractalUserMethod to be used how the user wishes

I do not like the fact that the user needs to know ahead-of-time how many frames to render and put their run! statements in a for loop. As a simple abstraction, I could write a render!(layers, t1, t2) command that renders all layers from t1 to t2 as:

function render!(layers, t1, t2)
    for i = frame(t1):frame(t2)
        run!(layers)
    end
end

But I need to think about this a bit.

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

1 participant