question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Default: Animated or Still?

See original GitHub issue

Should the default mode be animated (i.e. 60 FPS requestAnimationFrame loop) or still (i.e. render once and then again on resize)?

Although most of my work lately is still (prints/penplotter/etc) I still think the majority of users would expect animated to be default, so they can use { time } without any additional settings…

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
mattdeslcommented, Jul 5, 2018

I’m going to close this as I think non-animated is a good default. Thanks for the input!

2reactions
mattdeslcommented, Jun 22, 2018

Thanks for the input!

@kellymilligan I think what you’re looking for should already be possible. You can use { scaleToView: true } if you want to preview a high-res output in your browser, see here in the docs.

If you have an artwork sized in cm/inches you can use this:

const settings = {
  animation: true, // enable frame loop
  dimensions: [ 15, 20 ], // 15 x 20 inches
  units: 'in', // working in inches
  pixelsPerInch: 300, // the output resolution
  scaleToView: true // scale to browser size for better performance
};

And/or, you can use { exportPixelRatio }, which multiplies the dimensions before exporting.

const settings = {
  animation: true, // enable frame loop
  dimensions: [ 1280, 720 ], // some size in pixels, or omit to use full-screen window size
  exportPixelRatio: 2, // tweak this to your liking
  scaleToView: true // scale the canvas down so it fits within browser size
};
Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Still images in Premiere
A still image can easily be animated using Premiere. ... Andrew Devis explains how the 'Default Scale to Frame Size' preference works in...
Read more >
How to detect if an image (a GIF) is animated or still
I think a file with gif extension can be still image or animated image. How can I check if it's animated or still...
Read more >
animation still playing after default Animate script removal
For some reason, the default “looking around” animation still plays even after replacing the default Animate script with an edited one.
Read more >
Property Animation Overview | Android Developers
The property animation system is a robust framework that allows you to animate almost anything. You can define an animation to change any ......
Read more >
Animated Emotes - Twitch Help
This article goes over creation and information about Animated Emotes. ... you're looking for a place to start, you still have access to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found