github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

zeni / animatap5 forked from michaelforrest/animataplayback

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 2
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Extraction of the playback view from Animata for integration in Processing applications — Read more

  cancel

http://www.cho-yaba.com

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

deleted useless files 
zeni (author)
Thu Apr 09 02:29:47 -0700 2009
commit  d98699cb3797b07ec1cb239b9acaefdb0948897a
tree    23f195ca1b499cc426465075ee59cbfaaa91c55e
parent  cd304a77fea26ba112b7faf7986ece80fd706a55
animatap5 /
name age
history
message
file README Thu Feb 26 22:21:22 -0800 2009 explanations (added method description) [zeni]
directory dist/ Thu Apr 09 01:32:52 -0700 2009 added example, corrected layer names [zeni]
directory example/ Thu Apr 09 01:32:52 -0700 2009 added example, corrected layer names [zeni]
directory src/ Thu Apr 09 01:32:52 -0700 2009 added example, corrected layer names [zeni]
README
A library for processing (http://processing.org) to render/control Animata (http://animata.kibu.hu) scenes.

Usage:
// --------------------------------------------------------------------------------------------
AnimataP5 playback;
void setup(){
     // The nmt file must be in your data folder with the related images
   playback = new AnimataP5(this,"myscene.nmt");
}
void draw(){
  playback.draw(0,0); // draw scene translated of (0,0)
  playback.moveJointX("myjoint",100); // set x-coordinate of "myjoint" to 100
  playback.moveJointY("myjoint",10); // set y-coordinate of "myjoint" to 10
  playback.setBoneTempo("mybone",.5); // set tempo of "mybone" to .5
  playback.setBoneRange("mybone",.2,.6); // set the range of "mybone" between .2 and .6
  playback.setLayerAlpha("mylayer",120); // set the alpha value of "mylayer" to 120 (0=transparent/255=opaque)
  playback.setLayerScale("mylayer",1.5); // set the scale of "mylayer" to 1.5
  playback.setLayerPos("mylayer",66,99); // set the position of "mylayer" to (66,99)
}
// --------------------------------------------------------------------------------------------
You can have several instances of the same Animata scene (same file) and control each joint/bone/layer individually.
To compile you need the Processing library (core.jar).
Examples to come soon.
// --------------------------------------------------------------------------------------------

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server