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.

Where and how are interpolation values calculated?

See original GitHub issue

I am learning as how are the interpolation tangents calculated, given some raw points. Consider I have star layer, and I am varying it’s outer radius over time. So according to the star layer documentation(link), at every keyframe, a key "i" and "o" will be calculated(link).

Now my question is where in the code are these values calculated? It would be much appreciated if someone could explain how these values are calculated or whether these values are constant. Thanks in Advance! ^__^

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
bodymovincommented, Apr 17, 2019

Here is where the star is converted to a regular path https://github.com/airbnb/lottie-web/blob/98ff0e3094d7d3f595b815fe2d5063d37ee19f18/player/js/utils/shapes/ShapeProperty.js#L322 hot sure where you a referring to regarding “x” and “y”, can you provide more details?

0reactions
AnishGGcommented, Apr 26, 2019

@bodymovin any progress regarding this. Any help would be much appreciated. ^_^

Read more comments on GitHub >

github_iconTop Results From Across the Web

Interpolation (Definition, Formula) | Calculation with Examples
Interpolation can be said as the method of determining the unknown value for any given set of functions with known values. The unknown...
Read more >
How To Interpolate: Definition, Directions and Examples
Interpolation is the process of deducing the value between two points in a set of data. When you're looking at a line graph...
Read more >
Interpolation Formula | Example with Excel Template - eduCBA
The formula for Interpolation can be calculated by using the following steps: Step 1: Firstly, identify the independent and dependent variables for the...
Read more >
How to Interpolate: 3 Steps (with Pictures) - wikiHow
Find the interpolated value mathematically.​​ Plugging in the values for y 1 and y 2 at the end of the equation gives (5...
Read more >
Interpolation in Statistics: Definition, Formula & Example
1. Since we want the height of the tree after eight years, we will use the two data points closest to this value...
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