diff --git a/.gitignore b/.gitignore
index e33609d..e69de29 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +0,0 @@
-*.png
diff --git a/Main6/applejack-nohat.png b/Main6/applejack-nohat.png
new file mode 100644
index 0000000..8218ff4
Binary files /dev/null and b/Main6/applejack-nohat.png differ
diff --git a/Main6/applejack-nohat.svg b/Main6/applejack-nohat.svg
new file mode 100644
index 0000000..b42d0c8
--- /dev/null
+++ b/Main6/applejack-nohat.svg
@@ -0,0 +1,455 @@
+
+
\ No newline at end of file
diff --git a/Main6/fluttershy.png b/Main6/fluttershy.png
new file mode 100644
index 0000000..15856a1
Binary files /dev/null and b/Main6/fluttershy.png differ
diff --git a/Main6/fluttershy.svg b/Main6/fluttershy.svg
new file mode 100644
index 0000000..c407a65
--- /dev/null
+++ b/Main6/fluttershy.svg
@@ -0,0 +1,493 @@
+
+
\ No newline at end of file
diff --git a/Main6/pinkie-pie.png b/Main6/pinkie-pie.png
new file mode 100644
index 0000000..d7fbdbf
Binary files /dev/null and b/Main6/pinkie-pie.png differ
diff --git a/Main6/pinkie-pie.svg b/Main6/pinkie-pie.svg
new file mode 100644
index 0000000..570508c
--- /dev/null
+++ b/Main6/pinkie-pie.svg
@@ -0,0 +1,472 @@
+
+
\ No newline at end of file
diff --git a/Main6/rainbow-dash.png b/Main6/rainbow-dash.png
new file mode 100644
index 0000000..351f96b
Binary files /dev/null and b/Main6/rainbow-dash.png differ
diff --git a/Main6/rainbow-dash.svg b/Main6/rainbow-dash.svg
new file mode 100644
index 0000000..65e8272
--- /dev/null
+++ b/Main6/rainbow-dash.svg
@@ -0,0 +1,561 @@
+
+
\ No newline at end of file
diff --git a/Main6/rarity.png b/Main6/rarity.png
new file mode 100644
index 0000000..2da664a
Binary files /dev/null and b/Main6/rarity.png differ
diff --git a/Main6/rarity.svg b/Main6/rarity.svg
new file mode 100644
index 0000000..01c8a85
--- /dev/null
+++ b/Main6/rarity.svg
@@ -0,0 +1,469 @@
+
+
\ No newline at end of file
diff --git a/Main6/twilight-alicorn.plain.txt b/Main6/twilight-alicorn.plain.txt
index 33a5cbf..c869397 100644
--- a/Main6/twilight-alicorn.plain.txt
+++ b/Main6/twilight-alicorn.plain.txt
@@ -4,10 +4,10 @@
( / \_ `.' / `.
| | ) `;. ,' / \ \
( '. /___/_j_ / ) | )
- '\ / __\ ``::'/__' |
- |\_ ( / .-| |-.| `-,|
- .| ( \ ( (WW| \W)j '
- ..-----, .|' ', \_\_`_| ``-.
+ '\ / __\``::'/__' |
+ |\_ ( / .-| |-.| `-,|
+ .| ( \ ( (WW| \W)j '
+ ..-----, .|' ', \_\_`_| ``-.
.-` ..::. `,___ |, ._:7 \__/
,' .:::'':::.|.`.`-. |:'. \ ______.-'
.' .::' '::\`.`. `-._| \ \ `"7 /
diff --git a/Main6/twilight-alicorn.png b/Main6/twilight-alicorn.png
new file mode 100644
index 0000000..876c1cf
Binary files /dev/null and b/Main6/twilight-alicorn.png differ
diff --git a/Main6/twilight-alicorn.svg b/Main6/twilight-alicorn.svg
new file mode 100644
index 0000000..8758986
--- /dev/null
+++ b/Main6/twilight-alicorn.svg
@@ -0,0 +1,484 @@
+
+
\ No newline at end of file
diff --git a/Main6/twilight-unicorn.plain.txt b/Main6/twilight-unicorn.plain.txt
index c3bb4f6..681adf9 100644
--- a/Main6/twilight-unicorn.plain.txt
+++ b/Main6/twilight-unicorn.plain.txt
@@ -1,13 +1,13 @@
-xfffxxxxx c
+
__ _____ _
/ \__..--"" ;-.",'/
( / \_ `.' / `.
| | ) `;. ,' / \ \
( '. /___/_j_ / ) | )
- '\ / __ \``::'/__' |
- |\_ ( / .- | |-.| `-,|
- .| ( \ ((WW | \W)j '
- ..-----, .|' ', \_ _ _| ``-.
+ '\ / __\``::'/__' |
+ |\_ ( / .-| |-.| `-,|
+ .| ( \ ( (WW| \) j '
+ ..-----, .|' ', \_\_`_| ``-.
.-` ..::. `, |, ._:7 \__/
,' .:::'':::. \ |:'. \ ______.-'
.' .::' ':: :._______| \ \ `"7 /
diff --git a/Main6/twilight-unicorn.png b/Main6/twilight-unicorn.png
new file mode 100644
index 0000000..05be479
Binary files /dev/null and b/Main6/twilight-unicorn.png differ
diff --git a/Main6/twilight-unicorn.svg b/Main6/twilight-unicorn.svg
new file mode 100644
index 0000000..862b8aa
--- /dev/null
+++ b/Main6/twilight-unicorn.svg
@@ -0,0 +1,451 @@
+
+
\ No newline at end of file
diff --git a/Makefile b/Makefile
index c2474b0..fe5d6f1 100644
--- a/Makefile
+++ b/Makefile
@@ -13,9 +13,12 @@ PONIES= Main6/applejack-nohat \
SCRIPT=$(PWD)/render_parts.php
OUT_PLAIN=$(addsuffix .plain.txt,$(PONIES))
OUT_COLOR=$(addsuffix .colored.txt,$(PONIES))
+OUT_SVG=$(addsuffix .svg,$(PONIES))
+OUT_PNG=$(addsuffix .png,$(PONIES))
+OUT_ALL= $(OUT_COLOR) $(OUT_PLAIN) $(OUT_SVG) $(OUT_PNG)
find_deps=$(subst ;,\\\;,$(wildcard $(1)/*))
-all: $(OUT_COLOR) $(OUT_PLAIN)
+all: $(OUT_ALL)
define rule_template
$(1).colored.txt: $(call find_deps, $(1))
@@ -23,8 +26,14 @@ $(1).colored.txt: $(call find_deps, $(1))
$(1).plain.txt: $(call find_deps, $(1))
$(SCRIPT) $(1) >$(1).plain.txt nocolor
+
+$(1).svg: $(call find_deps, $(1))
+ $(SCRIPT) $(1) >$(1).svg svg
endef
+%.png : %.svg
+ inkscape $*.svg -e $*.png
+
$(foreach pony,$(PONIES),$(eval $(call rule_template,$(pony))))
show: $(PONY).colored.txt
diff --git a/Other/derpy.png b/Other/derpy.png
new file mode 100644
index 0000000..afc10c4
Binary files /dev/null and b/Other/derpy.png differ
diff --git a/Other/derpy.svg b/Other/derpy.svg
new file mode 100644
index 0000000..ee7f1b8
--- /dev/null
+++ b/Other/derpy.svg
@@ -0,0 +1,481 @@
+
+
\ No newline at end of file
diff --git a/Other/trixie-hat.png b/Other/trixie-hat.png
new file mode 100644
index 0000000..1309845
Binary files /dev/null and b/Other/trixie-hat.png differ
diff --git a/Other/trixie-hat.svg b/Other/trixie-hat.svg
new file mode 100644
index 0000000..6204067
--- /dev/null
+++ b/Other/trixie-hat.svg
@@ -0,0 +1,458 @@
+
+
\ No newline at end of file
diff --git a/render_parts.php b/render_parts.php
index 3df3715..06abb64 100755
--- a/render_parts.php
+++ b/render_parts.php
@@ -1,7 +1,62 @@
#!/usr/bin/php
= 30 && $format < 38 )
+ {
+ $color_n = $format-30;
+ }
+ else if ( $format == 1 )
+ $bold = true;
+ }
+
+ if ( $bold )
+ {
+ switch($color_n)
+ {
+ case 0: return 'gray';
+ case 1: return 'red';
+ case 2: return 'lime';
+ case 3: return 'yellow';
+ case 4: return 'blue';
+ case 5: return 'magenta';
+ case 6: return 'cyan';
+ case 7: return 'white';
+ }
+ }
+ switch($color_n)
+ {
+ case 0: return 'black';
+ case 1: return 'maroon';
+ case 2: return 'green';
+ case 3: return 'orange';
+ case 4: return 'navy';
+ case 5: return 'purple';
+ case 6: return 'teal';
+ case 7: return 'silver';
+ }
+ return "silver";
+}
+
$dir = isset($argv[1]) ? $argv[1] : getcwd();
-$print_color = !isset($argv[2]) || $argv[2] != 'nocolor';
+const COLORED_TEXT = 0;
+const PLAIN_TEXT = 1;
+const SVG = 2;
+if ( !isset($argv[2]) )
+ $output_type = COLORED_TEXT;
+else if ( $argv[2] == 'nocolor' )
+ $output_type = PLAIN_TEXT;
+else if ( $argv[2] == 'svg' )
+ $output_type = SVG;
+
+
$dir_files = scandir($dir);
$files = array();
$maxw = 0;
@@ -37,19 +92,60 @@ foreach ( $files as $color => $lines )
}
}
-foreach($chars as $line)
+if ( $output_type == SVG )
{
- foreach($line as $char)
+ $font_size = 12;
+ $font_width = $font_size/2;
+ echo "\n";
+ echo "";
+}
+else
+{
+ foreach($chars as $line)
+ {
+ if ( $output_type == SVG )
+ {
+ $y += $font_size;
+ $x = 0;
+ }
+
+ foreach($line as $char)
+ {
+ if ( is_null($char) )
+ echo ' ';
+ else if ( $output_type == COLORED_TEXT )
+ echo "\x1b[$char[color]m$char[char]";
+ else
+ echo $char['char'];
+ }
+ echo "\n";
+ }
+ if ( $output_type == COLORED_TEXT )
+ echo "\x1b[0m\n";
}
-if ( $print_color )
- echo "\x1b[0m\n";