{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaGraphics/Luxor.jl/issues/30","repository_url":"https://api.github.com/repos/JuliaGraphics/Luxor.jl","labels_url":"https://api.github.com/repos/JuliaGraphics/Luxor.jl/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/JuliaGraphics/Luxor.jl/issues/30/comments","events_url":"https://api.github.com/repos/JuliaGraphics/Luxor.jl/issues/30/events","html_url":"https://github.com/JuliaGraphics/Luxor.jl/issues/30","id":298058955,"number":30,"title":"passing more parameters in the Scene function","user":{"login":"mantzaris","id":11978807,"avatar_url":"https://avatars2.githubusercontent.com/u/11978807?v=4","gravatar_id":"","url":"https://api.github.com/users/mantzaris","html_url":"https://github.com/mantzaris","followers_url":"https://api.github.com/users/mantzaris/followers","following_url":"https://api.github.com/users/mantzaris/following{/other_user}","gists_url":"https://api.github.com/users/mantzaris/gists{/gist_id}","starred_url":"https://api.github.com/users/mantzaris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mantzaris/subscriptions","organizations_url":"https://api.github.com/users/mantzaris/orgs","repos_url":"https://api.github.com/users/mantzaris/repos","events_url":"https://api.github.com/users/mantzaris/events{/privacy}","received_events_url":"https://api.github.com/users/mantzaris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-18T04:50:37Z","updated_at":"2018-02-18T08:25:28Z","closed_at":null,"author_association":"NONE","body":"When using the animate function, the array of Scenes; how can it be used to pass to the different function parameters to 'backdrop'/ 'frame' etc? I would like to pass in data computed in the iterative cycles which is stored in a composite type and although I am not sure this is the best way, to update the state I wish to pass the type through the function calls of each frame"},"comment":{"url":"https://api.github.com/repos/JuliaGraphics/Luxor.jl/issues/comments/366500157","html_url":"https://github.com/JuliaGraphics/Luxor.jl/issues/30#issuecomment-366500157","issue_url":"https://api.github.com/repos/JuliaGraphics/Luxor.jl/issues/30","id":366500157,"user":{"login":"cormullion","id":52289,"avatar_url":"https://avatars1.githubusercontent.com/u/52289?v=4","gravatar_id":"","url":"https://api.github.com/users/cormullion","html_url":"https://github.com/cormullion","followers_url":"https://api.github.com/users/cormullion/followers","following_url":"https://api.github.com/users/cormullion/following{/other_user}","gists_url":"https://api.github.com/users/cormullion/gists{/gist_id}","starred_url":"https://api.github.com/users/cormullion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cormullion/subscriptions","organizations_url":"https://api.github.com/users/cormullion/orgs","repos_url":"https://api.github.com/users/cormullion/repos","events_url":"https://api.github.com/users/cormullion/events{/privacy}","received_events_url":"https://api.github.com/users/cormullion/received_events","type":"User","site_admin":false},"created_at":"2018-02-18T08:25:28Z","updated_at":"2018-02-18T08:25:28Z","author_association":"COLLABORATOR","body":"Hi there! I really appreciate your input about how this currently works - perhaps the design can be improved. (Surely it can!)\r\n\r\nI’ve noticed the problem before (and it relates to the general theme about avoiding global variables in Julia code for performance reasons). One solution I’ve used before is to define a frame function that accepts keyword arguments, as well as the two obligatory arguments that must be defined. Then you call the frame functions like this:\r\n\r\n`\r\nScene(moviename, (s, f) -> framefunc(s, f, kwarg1=“a”, kwarg2=“b”))\r\n`\r\n(I’ll have to check this syntax when I’m near a computer...)"}}
{"actor":{"display_login":"cormullion"}}