flat assembler
Message board for the users of flat assembler.

 Index > Heap > Number patterns
Author
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!
24 Feb 2005, 17:58
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.
25 Feb 2005, 02:40
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
}
```
28 Feb 2005, 08:45
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First

 Jump to: Select a forum Official----------------AssemblyPeripheria General----------------MainDOSWindowsLinuxUnixMenuetOS Specific----------------MacroinstructionsCompiler InternalsIDE DevelopmentOS ConstructionNon-x86 architecturesHigh Level LanguagesProgramming Language DesignProjects and IdeasExamples and Tutorials Other----------------FeedbackHeapTest Area

Forum Rules:
 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou can attach files in this forumYou can download files in this forum