Giter Club home page Giter Club logo

Comments (3)

Wikunia avatar Wikunia commented on June 11, 2024

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.

Eggiverse avatar Eggiverse commented on June 11, 2024

I might have time for PR next month if that is fine with your plan.

from javis.jl.

ArbitRandomUser avatar ArbitRandomUser commented on June 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.