ccapture.js | capture canvas-based animations | Canvas library

 by   spite JavaScript Version: v1.0.9 License: MIT

kandi X-RAY | ccapture.js Summary

kandi X-RAY | ccapture.js Summary

ccapture.js is a JavaScript library typically used in Telecommunications, Media, Media, Entertainment, User Interface, Canvas applications. ccapture.js has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can install using 'npm i zcapture.js' or download it from GitHub, npm.

CCapture.js is a library to help capturing animations created with HTML5 canvas at a fixed framerate. An example is probably worth a lot of words: CCapture.js with Game of Life 3D. Let's say that you finally have your amazing canvas-based animation running in your browser, be it 2D or 3D with the power of WebGL. You've been working hard to keep it fast and smooth. If you're using requestAnimationFrame you're aiming for a framerate of 60fps or, in other words, each frame is taking 16ms or less to render. Now you want to record a video of it. Not a big deal, you can fire up a screen capture software that churns out a video file and be done with it. But what if you wanted to create an HD movie of your animation, and it simply cannot be rendered at higher resolutions because frames start dropping? What if you wanted to put all the quality settings up for the video? What if you wanted to push that particle count to 10 millions?. What if, indeed. What would happen is that you'd get a choppy video at best. At higher resolutions, fillrate is a bottleneck for most canvas-based animations. High quality settings or high number of elements may be only feasible on more powerful hardware. With CCapture.js you can record smooth videos at a fixed framerate for all these situations, because it doesn't run in realtime: it makes the animations run at a given, fixed framerate which can be specified. You can record animations at smooth and consistent 30 or 60fps even if each frame takes seconds to render. You can even take a 240fps capture and create motion blur with post-production software. The only requirement is that you step your values per frame according to elapsed time. In other words, don't increment your variables with a fixed value each frame, but use an elapsed time delta to adjust those increments. CCapture.js works by hooking the common methods for obtaining that elapsed time: Date.now(), setTimeout, requestAnimationFrame, etc. and making them behave like a constant time step is happening, fixed by the specified framerate.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ccapture.js has a medium active ecosystem.
              It has 3313 star(s) with 402 fork(s). There are 78 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 73 open issues and 48 have been closed. On average issues are closed in 190 days. There are 13 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of ccapture.js is v1.0.9

            kandi-Quality Quality

              ccapture.js has 0 bugs and 0 code smells.

            kandi-Security Security

              ccapture.js has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              ccapture.js code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              ccapture.js is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              ccapture.js releases are not available. You will need to build from source code and install.
              Deployable package is available in npm.
              Installation instructions are not available. Examples and code snippets are available.
              ccapture.js saves you 342 person hours of effort in developing the same functionality from scratch.
              It has 820 lines of code, 0 functions and 13 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ccapture.js
            Get all kandi verified functions for this library.

            ccapture.js Key Features

            No Key Features are available at this moment for ccapture.js.

            ccapture.js Examples and Code Snippets

            No Code Snippets are available at this moment for ccapture.js.

            Community Discussions

            Trending Discussions on ccapture.js

            QUESTION

            CCapture.js webm video blacked out
            Asked 2017-Oct-23 at 15:30

            I've been trying to record a video of an HTML Canvas animation using the CCapture.js project. Specifically, it has a webm capture option which uses whammy.js under the hood. I've tinkered with many of the parameters, but so far I've only had it output a video of the correct length, but without any of the canvas elements - it just looks black.

            Here is a jsfiddle illustrating the issue. It creates an animation and records 2 seconds, then saves/downloads the webm output.

            Here is the CCapture setup I've got in the jsfiddle:

            ...

            ANSWER

            Answered 2017-Oct-23 at 15:30

            Turns out it was a bug in Whammy.js, an issue with parsing webp. After applying the fix, it is recording correctly again!

            Source https://stackoverflow.com/questions/46850172

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install ccapture.js

            You can install using 'npm i zcapture.js' or download it from GitHub, npm.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/spite/ccapture.js.git

          • CLI

            gh repo clone spite/ccapture.js

          • sshUrl

            git@github.com:spite/ccapture.js.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link