diff --git a/on screen note/note.sh b/on screen note/note.sh index 7841abb..ada5c6d 100755 --- a/on screen note/note.sh +++ b/on screen note/note.sh @@ -12,5 +12,5 @@ convert "$WORKING/ns1.png" -fuzz 12% -transparent "#00ff00" "$WORKING/ns2.png" #convert ns2.png -trim "n$i.png" # blender wants to scale to fit, # and if you want a 1:1 scale image i don't know what the *fuck* it's doing with an origin point. -convert "$WORKING/ns2.png" "$WORKING/note.png" +convert "$WORKING/ns2.png" -trim "$WORKING/note.png" rm "$WORKING/ns1.png" "$WORKING/ns2.png" "$SCRIPT_DIR/note.html" diff --git a/overlay text/overlaytext.sh b/overlay text/overlaytext.sh new file mode 100755 index 0000000..50afbf3 --- /dev/null +++ b/overlay text/overlaytext.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +WORKING=$PWD + +head -n 13 "$SCRIPT_DIR/overlaytexttemplate.html" >"$SCRIPT_DIR/overlaytext.html" +echo $@ >>"$SCRIPT_DIR/overlaytext.html" +tail -n 5 "$SCRIPT_DIR/overlaytexttemplate.html" >>"$SCRIPT_DIR/overlaytext.html" + +firefox -P screenshitter --headless --window-size 3840,2160 --screenshot "$WORKING/ots1.png" "file:///$SCRIPT_DIR/overlaytext.html" +convert "$WORKING/ots1.png" -fuzz 12% -transparent "#00ff00" "$WORKING/ots2.png" +#convert ns2.png -trim "n$i.png" +# blender wants to scale to fit, +# and if you want a 1:1 scale image i don't know what the *fuck* it's doing with an origin point. +convert "$WORKING/ots2.png" "$WORKING/overlaytext.png" +rm "$WORKING/ots1.png" "$WORKING/ots2.png" "$SCRIPT_DIR/overlaytext.html" diff --git a/overlay text/overlaytexttemplate.html b/overlay text/overlaytexttemplate.html new file mode 100644 index 0000000..e5ea6b7 --- /dev/null +++ b/overlay text/overlaytexttemplate.html @@ -0,0 +1,19 @@ + + + + + + +
+
+
+ overlay loading... +
+
+
+ + \ No newline at end of file diff --git a/shared/style.css b/shared/style.css index 0b7a426..607e110 100644 --- a/shared/style.css +++ b/shared/style.css @@ -29,7 +29,7 @@ body{ right: 0.25em; } .text{ - padding: 0.25em 1em 0.25em 0.25em; + padding: 0.25em 0.25em 0.25em 0.25em; } .credit{ @@ -46,4 +46,14 @@ body{ } .credit img.src{ height:1em; -} \ No newline at end of file +} + +.overlaytext{ + font-size: 8em; + display:block; + margin: auto; + max-width: 90%; + border: 5px solid #666; + border-radius: 0.5em; + background-color: #232627; +}