GithubHelp home page GithubHelp logo

nickhardeman / ofxtweenzor Goto Github PK

View Code? Open in Web Editor NEW
52.0 52.0 18.0 81 KB

Tweening Engine for OpenFrameworks

C++ 88.78% C 0.42% Makefile 10.80%
addon openframeworks openframeworks-addon tween tweening-engine tweens

ofxtweenzor's People

Contributors

lab101 avatar nickhardeman avatar tiagosr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ofxtweenzor's Issues

int Tweenzor::getSize()

Hey Nick,

I had this small issue building the addon on Windows (no issues on OSX)
There is no return value in Tweenzor::getSize();

Changing it to return __instance->_tweens.size(); fixed it.

int Tweenzor::getSize() {
__instance->_tweens.size();
}

combine ofxTweenzor and ofParameter for ofxGui

Hi Nick !

Not really and issue at all, just asking for some problem ...

I'm facing a trouble i posted on the OF forum (http://forum.openframeworks.cc/t/combine-tweezor-with-ofparameter-in-ofxgui/18987).

What I'm trying to achieve is that an ofxGui slider is tight to ofParameter and this float is being driven by a Tweenzor.

As far as i understand what is going on this should make it ๐Ÿ‘

.h
ofParameter_x2;

.cpp
gui.add(_x2.set( "x2", 0, 0, ofGetWidth() ));
Tweenzor::add((float *)&_x2.get(), 0, ofGetWidth(), 0, 4,EASE_IN_OUT_EXPO);

what i get is that when the Tweenzor is acting, the value is being driven by Tweenzor (as expected), but my problem is that the ofxGui slider is not updated with the values being driven by the Tweenzor ... when the Tweensor ends, then i do can play with the slider and i see the resulting linked value correctly... so something is broken while the Tweenzor is driving the value ...

Maybe i'm confused about it ...
Does my question make sense ? Is it possible to link an ofParameter to a Tweenzor and see the gui widgets updated with Tweensor values ?

Tweens not being updated

I'm not sure if I'm doing something wrong, but using v2, none of my tweens are updating so it's having no affect.

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.