Comments (3)
I'm sorry that I missed this issue for so long. Yes I think that is a reasonable approach. I think there are a few more changes that need to be made like it would be good to store the video struct in every Object then and let it default to the current video.
Your approach would also make it easier to run Javis in Pluto as Pluto needs to figure out which cells depend on each other.
Are you yourself interested in working on a PR for this?
from javis.jl.
I might have time for PR next month if that is fine with your plan.
from javis.jl.
that'd be neat , until then if one wants to just re-use objects between videos one can still append
one videos objects to another video
using Javis
video1=Video(500,500)
Background(1:5,(v,o,f) -> (background("white")))
line1 = Object(1:5,(v,o,f) -> line(O,O+100,:stroke))
line2 = Object(1:5,(v,o,f) -> line(Point(100,0),Point(0,100),:stroke))
render(video1,pathname="vid.mp4")
video2 = Video(600,600)
Background(1:5,(v,o,f) -> (background("white")))
append!(video2.objects,line2)
line3 = Object(1:5,(v,o,f) -> line(O,Point(0,100),:stroke))
render(video2,pathname="vid2.mp4")
vid.mp4
will have line1 and line2 , but vid2.mp4
will have line2 and line3
you can also import all the objects using video1.objects[2:end]
if you ensure that the first Object you create in video1
is Background
from javis.jl.
Related Issues (20)
- [BUG] Irrational and Integer angles fail in rotation Actions
- [BUG] Documentation error
- Parallel gif rendering HOT 4
- [BUG] Javis breaks windows HOT 4
- Move liveview outside Javis HOT 1
- anim_translate error, error in fourier example[BUG] HOT 13
- [BUG] Not clear what `point` is in `anim_rotate_around( angle , point)` HOT 3
- [BUG] Documenter "edit on github" points to master branch
- [BUG] render fails with StackOverflowError on Tutorial 1 HOT 1
- [BUG] keyword arguments do not match for latex()
- [BUG] Tutorial 6 code issue
- Two interesting ways to render LaTeX aside from MathJax HOT 1
- [BUG] Luxor automatically in scope
- [BUG] issue with follow_path not working if object start_pos is not origin
- Educational Entropy example
- [BUG] Animation action setting hue works on those created by box but not by JBox HOT 2
- Problem while precompiling Javis HOT 2
- [BUG] Javis.Background and Javis.@JShape undefined HOT 3
- [BUG] When loading Javis get Gtk error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javis.jl.