topical media & game development

talk show tell print

graphic-processing-site-examples-3D-Typography-KineticType-Line.pde / pde



  class Line
  {
    String myString;
    int xPosition;
    int yPosition;
    int highlightNum;
    float speed;
    float curlInX;
    Letter myLetters[];
    
    Line(String s, int i, int j) 
    {
      myString = s;
      xPosition = i;
      yPosition = j;
      myLetters = new Letter[s.length()];
      float f1 = 0.0;
      for(int k = 0; k < s.length(); k++)
      {
        char c = s.charAt(k);
        f1 += textWidth(c);
        Letter letter = new Letter(c, f1, 0.0);
        myLetters[k] = letter;
      }
  
      curlInX = 0.1;
    }
  }
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.