colors

extract colors from pictures
git clone git://git.2f30.org/colors.git
Log | Files | Refs | README | LICENSE

commit 35730be563a8a505a99293e72135ce475db73513
parent 060def0e87f35d555aad4ddb4d6c1daf36d69e9b
Author: sin <sin@2f30.org>
Date:   Tue Jun  9 15:11:01 +0100

Rename scripts/ to bin/

Diffstat:
bin/hex2html | 27+++++++++++++++++++++++++++
scripts/tohtml.sh | 27---------------------------
2 files changed, 27 insertions(+), 27 deletions(-)
diff --git a/bin/hex2html b/bin/hex2html @@ -0,0 +1,27 @@ +#!/bin/sh + +cat << EOF +<!DOCTYPE html> +<html> +<head> +<style> +.color-sample { + float: left; + margin: 2px; + width: 64px; + height: 64px; + border-radius: 3px; +} +</style> +</head> +<body> +EOF + +while read line; do + echo "<div class=\"color-sample\" style=\"background: ${line}\"></div>" +done + +cat << EOF +</body> +</html> +EOF diff --git a/scripts/tohtml.sh b/scripts/tohtml.sh @@ -1,27 +0,0 @@ -#!/bin/sh - -cat << EOF -<!DOCTYPE html> -<html> -<head> -<style> -.color-sample { - float: left; - margin: 2px; - width: 64px; - height: 64px; - border-radius: 3px; -} -</style> -</head> -<body> -EOF - -while read line; do - echo "<div class=\"color-sample\" style=\"background: ${line}\"></div>" -done - -cat << EOF -</body> -</html> -EOF