Closed Thread Icon

Topic awaiting preservation: Sierpinski Gasket Pages that link to <a href="https://ozoneasylum.com/backlink?for=22541" title="Pages that link to Topic awaiting preservation: Sierpinski Gasket" rel="nofollow" >Topic awaiting preservation: Sierpinski Gasket\

 
Author Thread
Iron Wallaby
Paranoid (IV) Inmate

From: USA
Insane since: May 2004

posted posted 07-13-2004 22:47

Sierpinski Gasket in 178 bytes. Nothing complicated, just toying with cellular automata.

http://www.rpi.edu/~laporj2/media/code/sierpinski.html

"Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clarke
"Any sufficiently arcane magic is indistinguishable from technology." -- P. David Lebling

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 07-13-2004 23:47

Nice.
...sorry, I couldn't help ( 111b )



(Edited by poi on 07-13-2004 23:49)

Iron Wallaby
Paranoid (IV) Inmate

From: USA
Insane since: May 2004

posted posted 07-14-2004 00:23

Fine, if that's the way you want it...

http://www.rpi.edu/~laporj2/media/code/sierpinski109.html



"Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clarke
"Any sufficiently arcane magic is indistinguishable from technology." -- P. David Lebling

(Edited by Iron Wallaby on 07-14-2004 00:25)

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 07-14-2004 01:44

Glad you take it that way.
107b sierpinski gasket /!\ increase the text-size if the gasket is screwed.

I have a 104b version, but not with the character "A"

Btw, you can remove the last ; in your script.



(Edited by poi on 07-14-2004 01:49)

Iron Wallaby
Paranoid (IV) Inmate

From: USA
Insane since: May 2004

posted posted 07-14-2004 05:32

Coolness. I'll see what I can come up with, then.

quote:
poi said:

Btw, you can remove the last ; in your script.


Indeed I can. Just one more byte to tie it up then...

"Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clarke
"Any sufficiently arcane magic is indistinguishable from technology." -- P. David Lebling

(Edited by Iron Wallaby on 07-14-2004 05:36)

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 07-14-2004 17:19

My version with a different character is 103b now.

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 07-26-2004 01:56

*bump*

The 104b version and 103b version are available. Notice that the 103b one does not in FireFox as it whines about a lack of declaration of the variable i.

InI
Maniac (V) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 07-26-2004 09:30

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 07-26-2004 11:32

in which browser, resolution, font ? Like the 107b version, the 103 and 104bytes ones must have a rather big font size to really show the gasket. Otherwise the lines appear like if there was a float:left;.

BillyRayPreachersSon
Nervous Wreck (II) Inmate

From: London
Insane since: Jul 2004

posted posted 07-26-2004 11:35
quote:
The 104b version and 103b version are available



This is interesting. Your 103b version seems to work when delivered from your web server, but not when delivered locally, or from my web server. I'm guessing this is due to the way the browser handles multiple whitespace. The only difference I can see is that my Apache server does not deliver the following in the HTTP response:

"X-Pad: avoid browser bug"

Do you know if this forces the browser to handle leading / multiple whitespace differently?

That aside, you could replace the "<br>" in your code with "\n" to take it down to 101 bytes (at least in IE, anyway - haven't tested other browsers

Dan

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 07-26-2004 12:05

Thank you for the infos about the HTTP headers.
In fact I don't use several whitespace but a whitespace and a character with the ascii code 255, that way it's not treated as a whitespace and I can put many blank characters in a row.

BillyRayPreachersSon
Nervous Wreck (II) Inmate

From: London
Insane since: Jul 2004

posted posted 07-26-2004 12:48

Aaah - that's what it was (#255). I really should upgrade from using notepad as my default source code viewer - that way, I might stand some chance of spotting these things

InI
Maniac (V) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 07-26-2004 13:08

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 07-26-2004 16:54

InI: That "bug", is here since the version in 107bytes. The font size must be big enough to avoid lines of the gasket to be stacked ( like with a float:left; or some SPANs ) when there's enough room for that.

BillyRayPreachersSon: I (ab)use UltraEdit. Hehe, I didn't even tried to read the source of the 171bytes panda in NotePad



(Edited by poi on 07-26-2004 16:57)

Iron Wallaby
Paranoid (IV) Inmate

From: USA
Insane since: May 2004

posted posted 07-26-2004 17:10

So that's how you did it. onload=''. Quite brilliant way to save, what, 7 bytes or so?

I'll have to play around with that some...

"Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clarke
"Any sufficiently arcane magic is indistinguishable from technology." -- P. David Lebling

BillyRayPreachersSon
Nervous Wreck (II) Inmate

From: London
Insane since: Jul 2004

posted posted 07-26-2004 18:13

I tried using <img onload="... but because the image never loads it fails spectacularly. And <img onerror=" is the same length as <body onload=" anyway... Ah well!

« BackwardsOnwards »

Show Forum Drop Down Menu