libansilove

Library for converting ANSI, ASCII, and other formats to PNG
Log | Files | Refs | README | LICENSE

config.h (2273B)


      1 /*
      2  * config.h
      3  * libansilove 1.2.4
      4  * https://www.ansilove.org
      5  *
      6  * Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus
      7  * All rights reserved.
      8  *
      9  * libansilove is licensed under the BSD 2-Clause License.
     10  * See LICENSE file for details.
     11  */
     12 
     13 #ifndef CONFIG_H
     14 #define CONFIG_H
     15 
     16 #include <stdint.h>
     17 
     18 static const uint8_t ansi_palette_red[] = {
     19 	0x00, 0xaa, 0x00, 0xaa, 0x00, 0xaa, 0x00, 0xaa,
     20 	0x55, 0xff, 0x55, 0xff, 0x55, 0xff, 0x55, 0xff
     21 };
     22 
     23 static const uint8_t ansi_palette_green[] = {
     24 	0x00, 0x00, 0xaa, 0x55, 0x00, 0x00, 0xaa, 0xaa,
     25 	0x55, 0x55, 0xff, 0xff, 0x55, 0x55, 0xff, 0xff
     26 };
     27 
     28 static const uint8_t ansi_palette_blue[] = {
     29 	0x00, 0x00, 0x00, 0x00, 0xaa, 0xaa, 0xaa, 0xaa,
     30 	0x55, 0x55, 0x55, 0x55, 0xff, 0xff, 0xff, 0xff
     31 };
     32 
     33 static const uint8_t workbench_palette_red[] = {
     34 	0xaa, 0x00, 0xff, 0x66, 0x00, 0xff, 0x00, 0xff,
     35 	0xaa, 0x00, 0xff, 0x66, 0x00, 0xff, 0x00, 0xff
     36 };
     37 
     38 static const uint8_t workbench_palette_green[] = {
     39 	0xaa, 0x00, 0xff, 0x88, 0x00, 0x00, 0xff, 0xff,
     40 	0xaa, 0x00, 0xff, 0x88, 0x00, 0x00, 0xff, 0xff
     41 };
     42 
     43 static const uint8_t workbench_palette_blue[] = {
     44 	0xaa, 0x00, 0xff, 0xbb, 0xff, 0xff, 0xff, 0xff,
     45 	0xaa, 0x00, 0xff, 0xbb, 0xff, 0xff, 0xff, 0xff
     46 };
     47 
     48 static const uint8_t vga_palette_red[] = {
     49 	0x00, 0x00, 0x00, 0x00, 0xaa, 0xaa, 0xaa, 0xaa,
     50 	0x55, 0x55, 0x55, 0x55, 0xff, 0xff, 0xff, 0xff
     51 };
     52 
     53 static const uint8_t vga_palette_green[] = {
     54 	0x00, 0x00, 0xaa, 0xaa, 0x00, 0x00, 0x55, 0xaa,
     55 	0x55, 0x55, 0xff, 0xff, 0x55, 0x55, 0xff, 0xff
     56 };
     57 
     58 static const uint8_t vga_palette_blue[] = {
     59 	0x00, 0xaa, 0x00, 0xaa, 0x00, 0xaa, 0x00, 0xaa,
     60 	0x55, 0xff, 0x55, 0xff, 0x55, 0xff, 0x55, 0xff
     61 };
     62 
     63 /* ADF color mapping array */
     64 static const uint8_t adf_colors[16] = { 0, 1, 2, 3, 4, 5, 20, 7, 56, 57, 58, 59, 60, 61, 62, 63 };
     65 
     66 static const uint8_t pcb_colors[] = {
     67 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
     68 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
     69 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
     70 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
     71 	0x00, 0x04, 0x02, 0x06, 0x01, 0x05, 0x03, 0x07, 0x08, 0x0c, 0x00, 0x00,
     72 	0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x0e, 0x09, 0x0d, 0x0b, 0x0f
     73 };
     74 
     75 #endif /* CONFIG_H */