dog

Only here to post about CD-ROMs

I want!!
⬅️ this mark
🍷white
and Taste 🦆11
require

 

 

(Avatar by @texture, CD-ROM Journal button by @candiedreptile)


CD-ROM Journal
cdrom.ca/

blackle
@blackle

Firstly, succumb to the knowledge that SVG files can have javascript embedded in them. Here is an example of some SVG art I made with a color-picker built into it.

Secondly, a fun fact: In SVG, a block of javascript code can live inside a tag alongside vector graphics. This means if you copy that group to another SVG document (e.g. in inkscape) the script will come along too.

So consider: an alternate history where SVG won over HTML. One where someone wrote some javascript that dynamically resizes the SVG viewbox depending on display resolution, and implements a grid-based layout system. I'm 50% sure this is possible, someone would just have to implement it.

So given paragraph 1, 2, and 3 together: I'm imagining that you could distribute scripts for SVG web pages as fancy vector graphics with the javascript inside its group tag. So if you were to load one of these alternate universe web pages into a graphics editor, you'd be able to see all the libraries it uses arranged in a neat row just outside the canvas extents. a screenshot from inkscape showing a hypothetical SVG-based webpage open for editing. above the actual canvas, out of view when the svg is loaded, are a series of library logos. the first is "svggrid.js" which has a pink logo, then the mit licensed "libforms2" which is a blue hexagon, then "printer" whose logo is a printer. then the twitter logo with a badge saying "svgjs." next is a clock that says "v2.9a" on it, then an emblem with a big question mark saying "superquery", and the last two logos are a generic script file icon. Anyway, I just think that would be neat

this post is adapted from an old masto thread of mine


dog
@dog

I wish I could find it now, because there was a guy who used to barge into any discussion about CSS to let you know you could make whole websites in SVG, no CSS or HTML needed. His personal site he linked as an example was garish and only looked right in a single web browser window size, but I can't argue that it worked