flat assembler
Message board for the users of flat assembler.

Index > Heap > Number patterns

Author
Thread Post new topic Reply to topic
THEWizardGenius



Joined: 14 Jan 2005
Posts: 382
Location: California, USA
THEWizardGenius
I once discovered accidentally that this code will generate a Sierpinski Gasket:
Code:
for x = 0 to width
  for y = 0 to length
    if x AND y <> 0 then
      putpixel(x,y), color
    endif
  next y
next x
    

Of course, you can easily convert this to assembly. I was just thinking the other day about number patterns. Is it possible that all number patterns exist because they were "built-in" to nature? And if so, is this obvious to a mathematician, or is this something that one has to study. In other words, do
the existing number patterns exist simply because our number system is the way it is? Does our number system have these patterns built into it as a result of its structure? And is this obvious to mathematicians or other people who work with numbers?

I'm wondering if anyone else knows of ways to create Sierpinski Gaskets and other patterns based on patterns built into number systems - this one is based on binary, obviously.

_________________
FASM Rules!
OS Dev is fun!
Pepsi tastes nasty!
Some ants toot!
It's over!
Post 24 Feb 2005, 17:58
View user's profile Send private message AIM Address Reply with quote
beppe85



Joined: 23 Oct 2004
Posts: 181
beppe85
There's is a beautiful game called the "game of life", it evolves form the current pattern.
Post 25 Feb 2005, 02:40
View user's profile Send private message Reply with quote
MCD



Joined: 21 Aug 2004
Posts: 604
Location: Germany
MCD
I also accidentially discovered this "escape-time" (!!!) fractal looking like a Sierpinsky triangle. It's an ultra fractal formula. Should not be to hard to convert it into Fractint or other formats.

Code:
Sierpinsky{
init:
  z = #pixel
loop:
 z = z*z + recip(z)
bailout:
  |z| <= 6
default:
  center = (0,0)
  magn = 1
}
    
Post 28 Feb 2005, 08:45
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.