Formats a stack with colors