Process text as shapes?

show your code then

that’s the most simple:

int lowerRightCornerX; 
String list="asd"; 

//
// ---------------------------------------------------------------
//
void setup()
{
  // init
  size(800, 600);

  lowerRightCornerX=86 ;
} // func 

void draw() 
{ 
  background(255);

  int x=1; 

  for (char c : list.toCharArray()) {

    switch (c) {

    case 'a':
      triangle(60*x+4, 75, 
        58*x+4, 20, 
        lowerRightCornerX*x*1+4, 75);
      break; 

    case 's':
      rect(60*x+4, 20, 
        33, 56);  
      break; 

    case 'd':
      ellipse(60*x+4, 20+33, 
        33, 33);
      break; 

    default: 
      break;
    }//switch
    x++;
  }//for
} // func 
//
// =====================================================================
2 Likes