Skip to content

Commit

Permalink
makeSwatches: add 'forgotten color' prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
tzvi committed May 19, 2015
1 parent 3674e20 commit 42c19ee
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Imagick/makeSwatches.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@SETLOCAL ENABLEDELAYEDEXPANSION
@ECHO OFF
SETLOCAL
ENABLEDELAYEDEXPANSION
REM Has this been tested?
@REM Will create a png file 100x100 pixels with the specified color, named the-specified-color.png
REM You need to have imconvert in your system path.
Expand All @@ -11,7 +10,12 @@ rem @enabledelayedexpansion


SET filetype=png

IF [%1]==[] (
ECHO No color indicated!
ECHO Expected format: makeSwatches color name
ECHO Example: makeSwatches dark blue
GOTO:EOF
)
IF [%2]==[] (
SET output=%1.%filetype%
rem echo 2 is not defined
Expand Down

0 comments on commit 42c19ee

Please sign in to comment.