terminal_color.dart 322 B

123456789101112131415
  1. class TerminalColor {
  2. static int empty() {
  3. return 0xFF000000;
  4. }
  5. static int transparent = 0x00000000;
  6. static int fromARGB(int a, int r, int g, int b) {
  7. return (((a & 0xff) << 24) |
  8. ((r & 0xff) << 16) |
  9. ((g & 0xff) << 8) |
  10. ((b & 0xff) << 0)) &
  11. 0xFFFFFFFF;
  12. }
  13. }