Browse Source

Create example.sh

Add a simple example
Godzil 8 years ago
parent
commit
a1ff1f48ca
1 changed files with 14 additions and 0 deletions
  1. 14 0
      example.sh

+ 14 - 0
example.sh

@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# Include the library
+. bashfblib.sh
+
+
+# Usage: ./example.sh min max r g b
+
+for y in `seq $1 $2`; do
+	for x in `seq $1 $2`; do
+		drawpixel $x $y $3 $4 $5
+	done
+done
+