Commit graph

166 commits

Author SHA1 Message Date
4f3d66f6a0 Make bright printing optional 2024-03-15 23:19:17 +01:00
9d4ecaaf72 Print images lighter 2024-03-15 22:13:45 +01:00
e7d3d2b638 Fix flip camera button 2024-03-14 22:21:30 +01:00
853895df79 Add /calendar 2024-03-13 02:37:52 +01:00
d20c5a49a4 Add flip camera button 2024-03-10 20:16:45 +01:00
571dff3598 Implement instant photo website 2024-03-10 19:10:26 +01:00
e903ca7ff9 Add /photo 2024-03-10 15:40:41 +01:00
e0a668a581 Improve server error handling 2024-03-10 15:26:50 +01:00
9d17d34642 Rewrite url paths
HTML files should only be accessible without their file ending. Index
files should only be accessible via a path that ends in `/`, not
directly via name,
2024-03-10 14:41:42 +01:00
1c3b2a380a Center images 2024-03-10 01:53:54 +01:00
a51f3fa9b5 Add /index.html and /image.html 2024-03-10 01:06:20 +01:00
3cec866ba2 Increase feed after image 2024-03-09 23:17:40 +01:00
1b8f895680 Switch to nonlinear color difference 2024-03-09 23:17:08 +01:00
929ebb84eb Allow uploading images up to 32 MiB 2024-03-09 23:15:48 +01:00
74b0d25dfc Add /image endpoint 2024-03-09 22:47:10 +01:00
ef5f0e3af4 Add Image widget 2024-03-09 22:46:55 +01:00
a0c94c1884 Fix layout issues
The issues were likely caused by floating point inaccuracy. I don't have
a minimal working example though.
2024-03-09 20:28:30 +01:00
7aa192047b Add box around /me 2024-03-09 19:02:39 +01:00
db2766bbb4 Limit nick height 2024-03-09 19:02:27 +01:00
bd069e8f26 Add more unifont symbols 2024-03-09 19:01:14 +01:00
757b401b2d Increase max username width
Long nicks were annoying if the message itself was only a single line
and there was enough space left.
2024-03-09 18:23:09 +01:00
e6e2a57d16 Import teepee scripts 2024-03-09 15:21:57 +01:00
9ebcabbf36 Reimplement chat message command 2024-03-09 15:21:57 +01:00
5cdc62bd29 Reimplement text command 2024-03-09 14:53:15 +01:00
638a449343 Make naming scheme more consistent
Constructor functions that set/overwrite a value are called with_*,
functions that add a value are called and_*.
2024-03-09 14:53:15 +01:00
0f21c3701e Improve text widget API 2024-03-09 13:28:13 +01:00
dd40058e71 Add showbits-assets with Unifont 15.1.05 2024-03-09 01:38:11 +01:00
aff5b4974e Measure width and decide on chunk height
The chunk height was tested by printing a widget with height 1200 and
continuous vertical lines. It printed perfectly and in one go.
2024-03-09 01:27:26 +01:00
2c8f9685b9 Add Block widget 2024-03-09 00:52:14 +01:00
e31eea8178 Add iterator over points in rect 2024-03-09 00:19:02 +01:00
4f14d70152 Give widget access to taffy layout 2024-03-09 00:07:59 +01:00
f4a6435e6f Remove now useless util module 2024-03-08 18:14:19 +01:00
602ad96cfe Add margin to text 2024-03-08 18:13:35 +01:00
62c4cc8f26 Fix text wrapping issue 2024-03-08 18:09:47 +01:00
1e73c01845 Switch to sRGBA everywhere 2024-03-08 17:40:17 +01:00
859fdb4bfe Add background color to Tree 2024-03-08 17:24:16 +01:00
c9dd8051dd Extract color conversion functions 2024-03-08 17:23:54 +01:00
6ab43a8d5e Try to draw simple "Hello world!" 2024-03-08 17:01:54 +01:00
13ed6ef3e3 Add FontStuff 2024-03-08 16:47:47 +01:00
c8c0759015 Implement Tree printing 2024-03-08 13:37:38 +01:00
9a25856548 Move render code into Tree 2024-03-08 12:10:45 +01:00
ce2f986983 Restructure printer code 2024-03-08 11:50:25 +01:00
dc6265f837 Add Text widget 2024-03-07 23:43:12 +01:00
fe33465564 Make widgets generic over global state 2024-03-07 16:34:10 +01:00
715be147f9 Add lots of layout helper functions 2024-03-07 15:54:35 +01:00
fb1deaabe5 Render tree of Widgets as RgbImage 2024-03-07 15:54:35 +01:00
bea5e03834 Add Widget and Node 2024-03-07 13:58:10 +01:00
eb04b3fb50 Rip out buffer and widgets
I've decided to use the "taffy" crate for layouting. To make the API
somewhat bearable to use, I've decided to perform all rendering in a
good ol' rgb image buffer (in this case, an ImageBuffer from the "image"
crate). The pixels will be converted to their final representation just
before being sent to whatever device will be displaying them.

I've removed the buffer and the color traits because they're no longer
necessary. I've also removed the existing widgets because the widget
system will have to be redesigned to work well with taffy.
2024-03-06 00:36:19 +01:00
04ed092c4f Fix warnings 2024-03-05 00:51:44 +01:00
a2867b7188 Import teepee code 2024-03-05 00:50:43 +01:00