note util

This commit is contained in:
adam 2024-06-20 01:10:39 -04:00
parent 367c3ccba8
commit 19a744f967
4 changed files with 49 additions and 1 deletions

View File

@ -11,7 +11,7 @@
font-size: 3em;
background-color: #333333;
border: 5px solid #CECECE;
border-radius: 1em;
border-radius: 0.5em;
display:inline-flex;
flex-flow: row nowrap;
}

BIN
on screen note/n.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

35
on screen note/note.html Normal file
View File

@ -0,0 +1,35 @@
<html>
<head>
<style type="text/css">
body{
background-color: #00FF00;
padding:0;
margin:0;
}
.note{
color: #DEDEDE;
font-size: 3em;
background-color: #333333;
border: 5px solid #666;
border-radius: 0.5em;
display:inline-flex;
flex-flow: row nowrap;
position: absolute;
bottom: 0.25em;
left: 0.25em;
}
.text{
padding: 0.25em 1em 0.25em 0.25em;
}
</style>
</head>
<body>
<div style="width:3840; height:2160; margin:0">
<div class="note">
<div class="text">
src: i was there
</div>
</div>
</div>
</body>
</html>

13
on screen note/note.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
WORKING=$PWD
echo "file:///$SCRIPT_DIR/note.html"
firefox -P screenshitter --headless --window-size 3840,2160 --screenshot "$WORKING/ns1.png" "file:///$SCRIPT_DIR/note.html"
convert "ns1.png" -fuzz 12% -transparent "#00ff00" "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 ns2.png "n$i.png"
rm ns1.png ns2.png