From f1973d263ebc7059989091f2026622ff2766dc66 Mon Sep 17 00:00:00 2001 From: jao Date: Sat, 5 Oct 2019 23:33:36 +0100 Subject: load icons --- icons/gen-load-icons.sh | 36 ++++++++++++++++++++++++++++++++++++ icons/load_0.xpm | 24 ++++++++++++++++++++++++ icons/load_1.xpm | 24 ++++++++++++++++++++++++ icons/load_2.xpm | 24 ++++++++++++++++++++++++ icons/load_3.xpm | 24 ++++++++++++++++++++++++ icons/load_4.xpm | 24 ++++++++++++++++++++++++ icons/load_5.xpm | 24 ++++++++++++++++++++++++ icons/load_6.xpm | 24 ++++++++++++++++++++++++ icons/load_7.xpm | 24 ++++++++++++++++++++++++ icons/load_8.xpm | 24 ++++++++++++++++++++++++ 10 files changed, 252 insertions(+) create mode 100755 icons/gen-load-icons.sh create mode 100644 icons/load_0.xpm create mode 100644 icons/load_1.xpm create mode 100644 icons/load_2.xpm create mode 100644 icons/load_3.xpm create mode 100644 icons/load_4.xpm create mode 100644 icons/load_5.xpm create mode 100644 icons/load_6.xpm create mode 100644 icons/load_7.xpm create mode 100644 icons/load_8.xpm (limited to 'icons') diff --git a/icons/gen-load-icons.sh b/icons/gen-load-icons.sh new file mode 100755 index 0000000..2ff765e --- /dev/null +++ b/icons/gen-load-icons.sh @@ -0,0 +1,36 @@ +#! /usr/bin/env perl + +use warnings; +use strict; + +use local::lib; +use Image::Xpm; +use POSIX; + +my $iwidth = 8; +my $iheight = 16; +my $pixels_per = $iheight / 8; +my $color_bg = "white"; +my $color_fg = "darkseagreen"; + +for ( my $file_num = 0; $file_num <= 8; $file_num++ ) { + my $i = Image::Xpm->new(-file => "load_$file_num.xpm", + -width => $iwidth, + -height => $iheight, + -background => $color_bg); + + my $h = $file_num * $pixels_per; + + for ( my $x = 0; $x < $iwidth; $x++ ) { + for ( my $y = 0; $y < $iheight; $y++ ) { + $i->xy($x, $y, $color_bg); + } + } + for ( my $x = 0; $x < $iwidth; $x++ ) { + for ( my $y = $iheight; $y >= ($iheight - $h); $y-- ) { + $i->xy($x, $y, $color_fg); + } + } + + $i->save; +} diff --git a/icons/load_0.xpm b/icons/load_0.xpm new file mode 100644 index 0000000..5c43f2c --- /dev/null +++ b/icons/load_0.xpm @@ -0,0 +1,24 @@ +/* XPM */ +static char *load_0[] = { +"5 16 4 1", +"# c darkseagreen", +"! c grey90", +"$ c grey96", +" c white", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" " +}; diff --git a/icons/load_1.xpm b/icons/load_1.xpm new file mode 100644 index 0000000..d21d509 --- /dev/null +++ b/icons/load_1.xpm @@ -0,0 +1,24 @@ +/* XPM */ +static char *load_1[] = { +"5 16 4 1", +" c white", +"$ c grey96", +"! c grey90", +"# c darkseagreen", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +"#####", +"#####" +}; diff --git a/icons/load_2.xpm b/icons/load_2.xpm new file mode 100644 index 0000000..afceb6f --- /dev/null +++ b/icons/load_2.xpm @@ -0,0 +1,24 @@ +/* XPM */ +static char *load_2[] = { +"5 16 4 1", +"! c grey90", +"# c darkseagreen", +" c white", +"$ c grey96", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +"#####", +"#####", +"#####", +"#####" +}; diff --git a/icons/load_3.xpm b/icons/load_3.xpm new file mode 100644 index 0000000..f88ef26 --- /dev/null +++ b/icons/load_3.xpm @@ -0,0 +1,24 @@ +/* XPM */ +static char *load_3[] = { +"5 16 4 1", +" c white", +"$ c grey96", +"! c grey90", +"# c darkseagreen", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####" +}; diff --git a/icons/load_4.xpm b/icons/load_4.xpm new file mode 100644 index 0000000..6182dcf --- /dev/null +++ b/icons/load_4.xpm @@ -0,0 +1,24 @@ +/* XPM */ +static char *load_4[] = { +"5 16 4 1", +"! c grey90", +"# c darkseagreen", +"$ c grey96", +" c white", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####" +}; diff --git a/icons/load_5.xpm b/icons/load_5.xpm new file mode 100644 index 0000000..05b7f4a --- /dev/null +++ b/icons/load_5.xpm @@ -0,0 +1,24 @@ +/* XPM */ +static char *load_5[] = { +"5 16 4 1", +" c white", +"$ c grey96", +"! c grey90", +"# c darkseagreen", +" ", +" ", +" ", +" ", +" ", +" ", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####" +}; diff --git a/icons/load_6.xpm b/icons/load_6.xpm new file mode 100644 index 0000000..971a973 --- /dev/null +++ b/icons/load_6.xpm @@ -0,0 +1,24 @@ +/* XPM */ +static char *load_6[] = { +"5 16 4 1", +" c white", +"$ c grey96", +"! c grey90", +"# c darkseagreen", +" ", +" ", +" ", +" ", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####" +}; diff --git a/icons/load_7.xpm b/icons/load_7.xpm new file mode 100644 index 0000000..dac0754 --- /dev/null +++ b/icons/load_7.xpm @@ -0,0 +1,24 @@ +/* XPM */ +static char *load_7[] = { +"5 16 4 1", +"! c grey90", +"# c darkseagreen", +" c white", +"$ c grey96", +" ", +" ", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####" +}; diff --git a/icons/load_8.xpm b/icons/load_8.xpm new file mode 100644 index 0000000..94843d4 --- /dev/null +++ b/icons/load_8.xpm @@ -0,0 +1,24 @@ +/* XPM */ +static char *load_8[] = { +"5 16 4 1", +"! c grey90", +"# c darkseagreen", +"$ c grey96", +" c white", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####", +"#####" +}; -- cgit v1.2.3