Create example.sh
Add a simple example
This commit is contained in:
parent
ca4f990ec8
commit
a1ff1f48ca
14
example.sh
Normal file
14
example.sh
Normal file
@ -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
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user