Broider: Pixel Art CSS Borders
maxbittker.github.io
maxbittker.github.io
3.x had some interesting priorities with regards to what a user may want to do, you don't realize (remember..) that in some ways the users of the past were more empowered than they are now until something like that is thrown in front of you to remember.
Fun times were had by my young self, though like you I had forgotten all about it until just now.
---
Edit: Oh wow, it's secretly still an option, even in Windows 11!
Try this:
- Get rid of your wallpaper image, set it to Solid Color instead.
- Open regedit.
- Go to HKEY_CURRENT_USER/Control Panel/Desktop.
- Add a new String Value called Pattern.
- Set the value of Pattern to the data from one of these: https://i.imgur.com/C2KcZFE.jpg
Or presumably a custom one, since the data just seems to be the pixels to colour, but I'm not sure in what format. I just tried it with Tulip though and now I have a desktop tulip pattern!
The numbers themselves look to be eight bytes of eight bits. The 50% gray gives it away:
>>> 0b01010101
85
>>> 0b10101010
170
What happens if you put more than 8 bytes in there? Or a negative number? What about “ ªU ªU ªU ªU”, the bytes for the grayscale? Give it a poke!PatBlt() was a fast way to fill a given rectangle with a color (or xor it), but it was also a fast way to blit the pattern brush currently selected to the device context (hdc). No doubt the 2D accelerated hardware capability this was made to work with was tied up in being able to quickly scan out to the clip region while selecting the corresponding byte per line.
Win GDI was a fascinating hardware centric abstraction.
Also I love it how you can remove parts you saw or aren't interested in. Fekt like a Google Keep kind of note taking.
It only works with ASCII characters though.
The pencil and eraser I get, and I thought one of the controls was Undo, but that one seems to be a toggle? And I have no idea what the last one is.
.broider { border-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAAjRJREFUeF7tnEFyAyEMBPE38v+3+Rv2Obhqx1MaLIw7VySBmpF2IdncBj9RArdoNIINgIZFANDTgd7HeDg5/o29qmw7hQLUkdMbtgB9A5JjcjzQ1Qm68dXmuD3VnV/Flz00PeEMxI0PUEEAoAKQKgkUuvi9cFZodUOq/tWWsl0PrQKp+gN0qiCAhoEA1OzR1ZKsPhTVhm3XQxUwNa4SBqgiOI0D9NdK3hSIbd79HmovWDjIHpqeUPWwasm6/un8ABomCtDTgIbzaQ/XrtB2AuEFABSgYQLhcCgUoGEC4XAoFKBhAuFwtkLVbym7j34un3Q+ABW3Xa5AAApQt6iv7T9e8mpClZ5bMipedXx1PrLkVy+gCsj1X50PQM0dURUH0NVA3ZJQO2aut928mv+LQqsB24kUF1DNH6DTBgC0qMjZvR2oyme3HusCc/Mrl7w7obJfPQ7QMGGAfjtQ1aRVT6z+rVKY30s4d32uvX1SAuj1x7oAFV8zo1DRM1xArr1U6Oqedlp8gIZ3FKAADRMIh0OhAA0TCIdDoQANEwiH206h7m2QOgqHeclwAJWIPAOAerykNUAlIs9AAl3d09zLh+p9rfJX+FTPBqj5NTRAzes8FBr+nyXHAVUJqXFVkj/XQxUwNQ5Q86EA0PBDAaAA/U/g0y/2SoFqnB5KD73WyGqFfL1CVQLV8e6zfHX9s788y6cnVC/WVYW7/un8ABomCtDTgIbzaQ/XrtB2AuEFABSgYQLhcE8DujBkS1iknAAAAABJRU5ErkJggg==") 28 / 28px / 0 round; border-width: 28px; border-style: solid; }
I don't remember the years but around 2004-2006, smooth rounded corners were still hard to do if you do not know "feathering" in the graphic software and then using it in CSS or as sprites for Flash.
I have lost the tool and the code but here is the article I wrote after reading happy emails from developers. https://brajeshwar.com/2005/splice9-bitmap-window-resizer-co...
One cant share the creation in the tool.
Just put the data uri behind the page link.