We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Help with Tag Cloud
Page Index Toggle Pages: 1
Help with Tag Cloud (Read 401 times)
Help with Tag Cloud
Jan 12th, 2009, 9:52pm
 
Hi I need help with tag cloud if anybody can spare a minute and help me please send me a PM.
Re: Help with Tag Cloud
Reply #1 - Jan 19th, 2009, 6:02pm
 
String[] words = {"TEST1","TEST2"};
int[] freq = {1,2};

Currently I have like this ( words are words that are drawn on screen and freq is frequency of words), but I would like to change this that it would get info from .txt file in format
TEST1     1
TEST2     2
Space beetween word and frequency is \t

Strings[] words and int[] freq is defined globally so I will probably need to fill this array in void setup() function.

Anyone care to help?
Page Index Toggle Pages: 1