align static method

List<int> align(
  1. int alignment
)

Implementation

static List<int> align(int alignment) {
  // ESC a n - Seleccionar justificación (0: izquierda, 1: centro, 2: derecha)
  return [0x1B, 0x61, alignment.clamp(0, 2)];
}