Trend graph sample

Crank Storyboard Designer samples and code snippets.

Moderator: jamiev

Trend graph sample

Postby ChrisK » Mon Jun 14, 2010 1:33 pm

We'd heard interest from a few people regarding how to do trend graphs and the like using Storyboard, so I whipped a sample for you to check out! This sample rolls a sin wave which can have its frequency/amplitude changed.

Just un-rar the archive and import the trend.gapp file into Storyboard to check it out.

I've used a lua function attached to a repeating timer to generate/move the trend data. The trend graph is rendered using the polygon render extension, so make sure you have the polygon plugin installed. Let us know if you have any questions!
(335.12 KiB) Downloaded 926 times
Posts: 38
Joined: Wed Nov 04, 2009 3:34 pm

Re: Trend graph sample

Postby DaveC426913 » Mon Jun 28, 2010 3:43 pm


Slight nitpick:

Your Increase and Decrease Frequency buttons are mixed up.

The Increase Frequency button currently decreases frequency, while increasing wavelength.
Posts: 27
Joined: Mon Jun 28, 2010 1:23 pm

Re: Trend graph sample

Postby ChrisK » Tue Jun 29, 2010 8:57 am

Thanks Dave -- you are completely right :)

I'll change the text on the buttons and re-up it!
Posts: 38
Joined: Wed Nov 04, 2009 3:34 pm

Return to Samples

Who is online

Users browsing this forum: No registered users and 1 guest