aboutsummaryrefslogtreecommitdiffstats
path: root/minilibx_linux/rgb2c.pl
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-14 18:13:58 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-14 18:13:58 +0200
commit9a128c613af5e927676589fdeff47135d8819f59 (patch)
treea348a31a4c4702546c202bc39134a366f576a60e /minilibx_linux/rgb2c.pl
parentMore norm (diff)
download42-cub3d-9a128c613af5e927676589fdeff47135d8819f59.tar.gz
42-cub3d-9a128c613af5e927676589fdeff47135d8819f59.tar.bz2
42-cub3d-9a128c613af5e927676589fdeff47135d8819f59.tar.xz
42-cub3d-9a128c613af5e927676589fdeff47135d8819f59.tar.zst
42-cub3d-9a128c613af5e927676589fdeff47135d8819f59.zip
Changed lib
Diffstat (limited to 'minilibx_linux/rgb2c.pl')
-rwxr-xr-xminilibx_linux/rgb2c.pl38
1 files changed, 0 insertions, 38 deletions
diff --git a/minilibx_linux/rgb2c.pl b/minilibx_linux/rgb2c.pl
deleted file mode 100755
index 9ef39a0..0000000
--- a/minilibx_linux/rgb2c.pl
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/perl
-#
-## rgb2c.pl for MiniLibX in /home/boulon/work/c/raytraceur/minilibx
-##
-## Made by Olivier Crouzet
-## Login <ol@epitech.net>
-##
-## Started on Tue Oct 5 16:33:46 2004 Olivier Crouzet
-## Last update Tue Oct 5 16:36:11 2004 Olivier Crouzet
-##
-
-
-#
-# Generate a .c file with encoded colors, from the XFree86 rgb.txt file.
-#
-
-open(RGB, "/usr/X11/lib/X11/rgb.txt");
-
-
-printf("/*\n** This is a generated file with rgb2c.pl and rgb.txt from\n");
-printf("** the XFree86 distribution.\n*/\n\n");
-printf("struct s_col_name mlx_col_name[] =\n{\n");
-
-while (<RGB>)
-{
- @tab = split;
- if ($tab[0] ne "!")
- {
- $color = $tab[3];
- if ("$tab[4]" ne "")
- {
- $color = "$tab[3] $tab[4]";
- }
- printf(" { \"%s\" , 0x%x },\n", $color, $tab[0]*65536+$tab[1]*256+$tab[2]);
- }
-}
-
-printf(" { 0, 0 }\n};\n");