Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,614,566
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 05-22-24 01:33 AM
Guest: Register | Login

0 users currently in Threads lost | 1 guest

Main - Threads lost - SVG~ New thread | New reply


blackhole89
Posted on 08-08-07 10:31 PM Link | Quote | ID: 61152


The Guardian
Moloch whose eyes are a thousand blind windows!
Level: 124

Posts: 391/4196
EXP: 21576830
Next: 259771

Since: 02-19-07
From: Ithaca, NY, US

Last post: 497 days
Last view: 109 days



As much as I am usually sceptical of XML, a markup language for vector graphics is a damn awesome thing. Too bad IE (at least 6) doesn't support it... not that I use it anyway.

So, I had a go at it, and...



source:
<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">

<svg xmlns="http://www.w3.org/2000/svg"
width="300" height="100">
<rect x="10" y="10" width="280" height="80" rx="1"
style="fill:#000000; stroke:#000000;stroke-width:0;fill-opacity:0.7" />
<text
style="font-size:10px;text-anchor:start;color:#10ff30;fill:#10ff30;stroke:none;stroke-width:1;font-family:Lucida Console"
id="text34"
x="20"
y="25">
<tspan
id="tspan36">C:\> console fakes are fun</tspan>

</text>
<text
style="font-size:10px;text-anchor:start;color:#10ff30;fill:#10ff30;stroke:none;stroke-width:1;font-family:Lucida Console"
id="text34"
x="20"
y="40">
<tspan
id="tspan36">also, here's a circle:</tspan>
</text>
<circle
cx="50"
cy="65"
r="18"
style="stroke:#5070FF;stroke-width:2px;fill:none" />

</svg>

(disregard the excessive formatting, I copied some tags from a Wikipedia SVG )

I positively think this is an awesome format and there should be more lobbying for its popularization.

Discuss.

____________________



Smallhacker
Posted on 08-08-07 10:32 PM Link | Quote | ID: 61156


Panser
Swedish weirdo times eleven

Level: 42

Posts: 169/339
EXP: 495483
Next: 25879

Since: 02-19-07
From: Stockholm, Sweden

Last post: 5210 days
Last view: 5209 days
It's an interesting format, but unless IE starts supporting it, it has no chance in heck of becoming a standard.

____________________
SMW Central

blackhole89
Posted on 08-08-07 10:34 PM Link | Quote | ID: 61159


The Guardian
Moloch whose eyes are a thousand blind windows!
Level: 124

Posts: 392/4196
EXP: 21576830
Next: 259771

Since: 02-19-07
From: Ithaca, NY, US

Last post: 497 days
Last view: 109 days



My post layout breaks in IE too, thanks to the transparency

____________________



GreyMaria
Posted on 08-14-07 05:10 AM (rev. 4 of 08-14-07 06:55 AM) Link | Quote | ID: 62319

>implying even the Japanese understand the Japanese
Level: 105

Posts: 172/2851
EXP: 11945676
Next: 316584

Since: 07-13-07

Last post: 4523 days
Last view: 4492 days
Bah, SVG.

The one format I could never make and never will get used to.



I wonder if you can use data: for SVG images?

EDIT: Testing using bh89's svg converted to b64



And woot. No uploading SVG files to a random server just so I can show off random crap for ME

EDIT2: Christ that took forever. What's this damned problem with extra space though? (fixed)

EDIT3: whoo, mega-huge dizzifying spiral (too lazy to make it actually exist on the top of the svg )



____________________
we're currently experiencing some technical difficulties

blackhole89
Posted on 08-15-07 02:12 AM Link | Quote | ID: 62483


The Guardian
Moloch whose eyes are a thousand blind windows!
Level: 124

Posts: 447/4196
EXP: 21576830
Next: 259771

Since: 02-19-07
From: Ithaca, NY, US

Last post: 497 days
Last view: 109 days



What do you use for base64-encoding that stuff? =o

____________________



GreyMaria
Posted on 08-15-07 02:41 AM (rev. 2 of 08-15-07 02:45 AM) Link | Quote | ID: 62493

>implying even the Japanese understand the Japanese
Level: 105

Posts: 194/2851
EXP: 11945676
Next: 316584

Since: 07-13-07

Last post: 4523 days
Last view: 4492 days
Posted by blackhole89
What do you use for base64-encoding that stuff? =o

I use this online tool, it does the job quite nicely. You have to manually remove linebreaks though...

So you could decode the base64 data I used, and you'd have an SVG file again.

It's like a zipfile. Except you can compress it multiple times.

____________________
we're currently experiencing some technical difficulties

blackhole89
Posted on 08-15-07 02:44 AM Link | Quote | ID: 62494


The Guardian
Moloch whose eyes are a thousand blind windows!
Level: 124

Posts: 450/4196
EXP: 21576830
Next: 259771

Since: 02-19-07
From: Ithaca, NY, US

Last post: 497 days
Last view: 109 days



An idea comes into my mind...

[svg width=800 height=800]<some svg commands here>[/svg]


How about it?

____________________



GreyMaria
Posted on 08-15-07 02:46 AM (rev. 2 of 08-15-07 02:48 AM) Link | Quote | ID: 62495

>implying even the Japanese understand the Japanese
Level: 105

Posts: 195/2851
EXP: 11945676
Next: 316584

Since: 07-13-07

Last post: 4523 days
Last view: 4492 days
That's actually a damn good idea, considering what you can do with SVG. I think I read something about being able to animate them...?

(By the way, are you just using CSS to customize the <pre> tag in your layout, or is there more than just a pre tag at work? I wanna make a few changes in my layout when I get it moved over here)

____________________
we're currently experiencing some technical difficulties

blackhole89
Posted on 08-15-07 02:59 PM Link | Quote | ID: 62609


The Guardian
Moloch whose eyes are a thousand blind windows!
Level: 124

Posts: 455/4196
EXP: 21576830
Next: 259771

Since: 02-19-07
From: Ithaca, NY, US

Last post: 497 days
Last view: 109 days



There's no <pre> tag in my layout; what I am using for the monospaced text is [code]..[/code].

____________________



GreyMaria
Posted on 08-15-07 08:56 PM (rev. 3 of 08-15-07 10:21 PM) Link | Quote | ID: 62673

>implying even the Japanese understand the Japanese
Level: 105

Posts: 216/2851
EXP: 11945676
Next: 316584

Since: 07-13-07

Last post: 4523 days
Last view: 4492 days
Posted by blackhole89
There's no <pre> tag in my layout; what I am using for the monospaced text is [code]..[/code].

Yes, but doesn't the [code] tag create a pre inside a table? I just wanna know so I don't have to go arrrrgh when I reconfigure my layout



EDIT: Meh, who cares. :\

____________________
we're currently experiencing some technical difficulties

Main - Threads lost - SVG~ New thread | New reply

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.024 seconds. (332KB of memory used)
MySQL - queries: 37, rows: 55/56, time: 0.016 seconds.