Created
December 11, 2012 14:15
-
-
Save branch14/4258871 to your computer and use it in GitHub Desktop.
Revisions
-
branch14 revised this gist
Dec 11, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # see https://github.com/thomasjbradley/signature-pad for more details instructions = JSON.load(data).map { |h| "line #{h['mx']},#{h['my']} #{h['lx']},#{h['ly']}" } * ' ' system "convert -size 198x55 xc:transparent -stroke blue -draw '#{instructions}' signature.png" -
branch14 created this gist
Dec 11, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ # see https://github.com/thomasjbradley/signature-pad for more details instructions = JSON.load(data).map { |h| "line #{h['mx']},#{h['my']} #{h['lx']},#{h['ly']}" } * ' ' system "convert -size 198x55 xc:transparent -stroke blue -draw '#{instructions}' signature.png'