Basic layout, centered text function and iterative color assignment