-->

Throb

If you prefer a more technical reference, visit the NextText Javadoc.

Name

Throb

Description

behave(TextObject to)

A DForm which throbs the TextObject.

Think of throb as a multiplication of the size of the object, which changes over time.

In order to improve interoperability with other DForms, the period of the throb is tracked as a frame count specific to each TextObjectGlyph. This way, each time the behaviour is called it modifies the control points of the Glyph by multiplying them by the appropriate factor, thus preserving any other modifications.

The following calculation defines throb with a period p and scale of s. Given a vector c from the center of the glyph to one of its control points, it's throbbed value for frame f is

p * ( ( s - 1 ) * ( ( cos( f / p * 2PI - PI ) ) + 1 ) + 1 )

XXXBUG: If the period or scale is changed after the behaviour has been started, then it will mess up any objects that are already throbbing. The way to correct this problem is to cache the period and scale along with the frame count, and only update them when a throb is completed.

Usage

Run applet | Download

TEST

Constructor

new Throb(float scale, int period)

Parameters

scale :

period :

Methods

behave(TextObjectGlyph to)

Related

TEST

48 Trackbacks

  1. By Travis on January 20, 2015 at 11:11 pm

    .

    ñïñ!!…

  2. By Carlos on January 21, 2015 at 6:14 pm

    .

    ñïàñèáî çà èíôó!…

  3. By Arturo on January 22, 2015 at 3:31 am

    .

    ñïàñèáî çà èíôó….

  4. By chester on January 22, 2015 at 4:27 am

    .

    ñïàñèáî çà èíôó!!…

  5. By dennis on January 23, 2015 at 1:19 am

    .

    thank you!!…

  6. By Daryl on January 23, 2015 at 1:51 am

    .

    thanks!!…

  7. By matt on January 23, 2015 at 6:26 pm

    .

    thank you!…

  8. By Danny on January 24, 2015 at 5:32 am

    .

    áëàãîäàðñòâóþ….

  9. By otis on January 26, 2015 at 2:10 am

    .

    ñïñ!!…

  10. By ken on January 26, 2015 at 2:43 am

    .

    ñýíêñ çà èíôó….

  11. By Mathew on January 26, 2015 at 3:15 am

    .

    ñýíêñ çà èíôó….

  12. By Tony on January 26, 2015 at 4:30 am

    .

    ñïñ!!…

  13. By jeremiah on January 26, 2015 at 12:47 pm

    .

    tnx for info!!…

  14. By nicholas on January 27, 2015 at 12:11 pm

    .

    ñïñ!…

  15. By raymond on January 28, 2015 at 11:55 am

    .

    ñýíêñ çà èíôó!!…

  16. By Steve on January 28, 2015 at 12:28 pm

    .

    good….

  17. By Jon on January 28, 2015 at 7:18 pm

    .

    ñïñ!!…

  18. By kirk on January 29, 2015 at 10:49 pm

    .

    thank you!!…

  19. By leon on January 29, 2015 at 11:24 pm

    .

    áëàãîäàðåí!!…

  20. By Willie on January 29, 2015 at 11:57 pm

    .

    ñïñ!!…

  21. By oscar on February 1, 2015 at 7:38 am

    .

    ñïñ!…

  22. By Kelly on February 2, 2015 at 5:08 am

    .

    ñïàñèáî çà èíôó!!…

  23. By hector on February 4, 2015 at 6:09 am

    .

    ñýíêñ çà èíôó….

  24. By Shane on February 4, 2015 at 4:58 pm

    .

    thanks for information!…

  25. By leslie on February 7, 2015 at 8:42 am

    .

    ñïàñèáî çà èíôó….

  26. By Juan on February 8, 2015 at 1:20 am

    .

    thanks for information!…

  27. By Luther on February 8, 2015 at 1:48 am

    .

    áëàãîäàðåí!…

  28. By Mitchell on February 8, 2015 at 11:09 am

    .

    áëàãîäàðåí!…

  29. By Alan on February 9, 2015 at 1:29 am

    .

    thanks for information!!…

  30. By wallace on February 9, 2015 at 2:04 am

    .

    tnx for info….

  31. By jon on February 9, 2015 at 2:40 am

    .

    ñïñ çà èíôó….

  32. By Bradley on February 9, 2015 at 3:15 am

    .

    ñïñ çà èíôó….

  33. By george on February 9, 2015 at 4:58 am

    .

    ñïñ!…

  34. By luis on February 10, 2015 at 5:17 am

    .

    ñïñ!!…

  35. By Charles on February 11, 2015 at 12:52 am

    .

    tnx!!…

  36. By Joey on February 11, 2015 at 4:37 pm

    .

    áëàãîäàðþ!…

  37. By Juan on February 11, 2015 at 5:17 pm

    .

    ñïñ çà èíôó!!…

  38. By oliver on February 11, 2015 at 5:54 pm

    .

    thank you!…

  39. By Bruce on February 11, 2015 at 6:32 pm

    .

    ñýíêñ çà èíôó!…

  40. By Francisco on February 11, 2015 at 7:15 pm

    .

    áëàãîäàðåí!!…

  41. By byron on February 11, 2015 at 7:54 pm

    .

    áëàãîäàðñòâóþ….

  42. By clyde on February 12, 2015 at 4:19 pm

    .

    ñïñ!…

  43. By oscar on February 12, 2015 at 4:57 pm

    .

    thanks for information….

  44. By danny on February 12, 2015 at 5:13 pm

    .

    good!…

  45. By Jessie on February 12, 2015 at 10:07 pm

    .

    good info….

  46. By Maurice on February 13, 2015 at 2:40 pm

    .

    ñïàñèáî….

  47. By nathaniel on February 14, 2015 at 12:01 am

    .

    good….

  48. By eddie on February 14, 2015 at 8:32 am

    .

    ñýíêñ çà èíôó….

2006 - 2008 Obx Labs/Jason Lewis

CC-GNU GPL
This software is licensed under the CC-GNU GPL.