GithubHelp home page GithubHelp logo

andreasplesch / aframe-keyframes-component Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 0.0 59 KB

keyframe interpolation for aframe

Home Page: https://andreasplesch.github.io/aframe-keyframes-component/examples/basic/

License: MIT License

HTML 15.43% JavaScript 84.57%

aframe-keyframes-component's People

Contributors

andreasplesch avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aframe-keyframes-component's Issues

Duplicate keys

Do not deduplicate . The intention of duplicate keys is to allow for a jump from one end value to a start value. The simplest implementation is to replace duplicates with a minimally larger number, eg.

0, 0.5, 0.5,1
0, 0.5, 0.5000001, 1

Check if there is a THREE.epsilon .

This avoids additional checking in the easing function which is called a lot.

readme

  • update design
  • properties

keys

  • use custom easing or custom interpolation

better keys default

[0,1] is only useful for a single to value. Change default to [0, 1/n, 2/n, n/n]
n = to.length -1

Pause , play

check if component pause and play make sense:
A-animation takes care of pause and play, should work.

Test

material.opacity needs from

investigate. Tween seens NaN as from if not given.

Check if all .properties need from, eg. material.color

may have to do with Tween array.

test suite

tests for regular use with single to value and no keys
: basic example
tests for incorrect number of keys: too many should be ignored, too few filled in.
tests for weird values in to
tests for duplicate keys: basic example
and decreasing keys

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.