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(); }
MotionText(String t, RFont f) { super(t, f); n = 0; RCommand.setSegmentLength(10); RCommand.setSegmentator(RCommand.UNIFORMLENGTH); myGroup = font.toGroup(text); myPoints = myGroup.getPoints(); }
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(); }
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)); } }