コード例 #1
0
    JitterText(String t, RFont f) {
      super(t, f);

      RCommand.setSegmentLength(20);
      RCommand.setSegmentator(RCommand.UNIFORMLENGTH);
      myGroup = font.toGroup(text);
      myGroup = myGroup.toPolygonGroup();
      myPoints = myGroup.getPoints();
    }
コード例 #2
0
    MotionText(String t, RFont f) {
      super(t, f);
      n = 0;

      RCommand.setSegmentLength(10);
      RCommand.setSegmentator(RCommand.UNIFORMLENGTH);
      myGroup = font.toGroup(text);
      myPoints = myGroup.getPoints();
    }
コード例 #3
0
    GenericText(String t, RFont f) {
      text = t;
      font = f;

      doneAnimating = false;
      frameNum = 0;

      RCommand.setSegmentLength(10);
      RCommand.setSegmentator(RCommand.UNIFORMLENGTH);
      myGroup = font.toGroup(text);
      myPoints = myGroup.getPoints();
    }
コード例 #4
0
    AgentText(String t, RFont f) {
      super(t, f);

      RCommand.setSegmentLength(1);
      RCommand.setSegmentator(RCommand.UNIFORMLENGTH);
      myGroup = font.toGroup(text);
      myPoints = myGroup.getPoints();

      myAgents = new FontAgent[myPoints.length];
      for (int i = 0; i < myPoints.length; i++) {
        myAgents[i] = new FontAgent(new PVector(myPoints[i].x, myPoints[i].y));
      }
    }