Logo by dainbramage - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Visit us on facebook
 
*
Welcome, Guest. Please login or register. March 28, 2024, 11:18:15 PM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: Recreational Programming.  (Read 1075 times)
0 Members and 1 Guest are viewing this topic.
Ryan_Burnside
Forums Newbie
*
Posts: 5


Programmer


« on: November 27, 2012, 11:53:31 PM »

Hello!

I've casually browsed this forum for some time enjoying the various projects people have been working on.
As a programmer, I wanted to provide a little place for people who do recreational programming to give some algorithms in pseudocode.

I've got a few effects and fractals already documented.
It is not strictly for fractals we have things like Perlin Noise too.

It is mostly for programmers.
Take a look, I'd welcome some more pseudocode and effects. I don't know many fractals beyond Lindenmayer Systems.
Thanks for your consideration.

You might want to bookmark the site, we don't have the easiest host name.
If you would like to join please do, there may be a bit of a wait as I approve your account. ( I do sleep a few hours each day) smiley
http://pixeloutlaw.smakweb.com/forums/

P.S. Moderator:
Hopefully this post does not break the rules here regarding website solicitation, if so please lock/delete it and you have my apologies.


« Last Edit: November 28, 2012, 03:19:45 AM by Ryan_Burnside » Logged
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #1 on: November 28, 2012, 12:33:06 AM »

hello, and thank you for your kind request wink

recreational programming ... here are some hints:

- animate sine dots by mixing up different frequency waves ( classic sine dot effect in oldschool demos )
- program in an 8 bit assembly language and solve various problems, e.g. like clearing the screen on a c64 emulator
- perlin noise is a good starter, but quite high maths ... do you have a game of life ?
- game of life can be extended to the classic fish-shark simulation, where sharks eat the fishes and depending on the rate they extinct or create waves ov more sharks or more fishes ...
- random game - iterated function systems for creating the fern fractal
  - can then be easily extended to flame fractals
- basic towers of hanoi shouldnt be missing on such a site wink


so far, best wishes for your project!
Logged

---

divide and conquer - iterate and rule - chaos is No random!
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #2 on: November 28, 2012, 12:35:55 AM »

i see many topics i suggested you have already wink
the pseudo code notation is great to get an algorithm ....
the mandelbox is equally elegant algorithm to the mandelbrot, might worth a pseudo code notation as well wink
just google for it
Logged

---

divide and conquer - iterate and rule - chaos is No random!
Ryan_Burnside
Forums Newbie
*
Posts: 5


Programmer


« Reply #3 on: November 28, 2012, 12:54:55 AM »

Thanks for the further thoughts cKleinhuis!

I can't believe I forgot Conway's Game of Life... :smiley
« Last Edit: November 28, 2012, 03:21:15 AM by Ryan_Burnside » Logged
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #4 on: November 28, 2012, 04:07:27 AM »

Something related to fractals and similar:

Assume you have a random generator with a given distribution - could be just 1D or 2D or 3D - and then assume you have 2 sets of data say each generated from a different seed and you want to morph from set A to set B. Now if using a pseudo-random you can't just smoothly change the seed so an initial idea is use result = s*An + (1-s)*Bn where An and Bn are the members of the sets and s varies from 1 to 0. Unfortunately this results in a change in the distribution e.g. if both linear like a single dice they end up as both with the distribution of a 2-dice roll when s is 0.5.
We want to change the combination so that if the two original sets are linear then the set at s=0.5 is also linear as are all resulting sets for s=0 to s=1.
To simplify the algorithm assume we have sets of data with all values from -1 to 1 and our mix is s where we want an undisturbed distribution as s varies.
Now obviously in this case our max range is always -1 to 1 and the central value is always 0.
Using:
  r = 2.0*(s*An+(1-s)*Bn)
  if r<-1
    r = -2-r
  else if r>1
    r = 2-r
  endif
Should give us morphing with much reduced change of character/distribution.

Oh look - folding wink

Edit: Using the above if there are n possible results in each source set of linear distribution i.e. such that the probability of each result is 1/n then using the above fudge to try to keep linear distribution in the resultant combined set results in n-3 values with probability (n+1)/n*n, two with probability (n+1)/2*n*n and one with probability (n+2)/n*n i.e. total probability =  ((n-3)*(n+1)+2*(n+1)/2+(n+2))/n*n i.e. (n^2-2*n-3)+n+1+n+2)/n*n = (n^2-2*n-3+2*n+3)/n*n = 1.
« Last Edit: November 28, 2012, 03:11:15 PM by David Makin » Logged

The meaning and purpose of life is to give life purpose and meaning.

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
Ryan_Burnside
Forums Newbie
*
Posts: 5


Programmer


« Reply #5 on: November 29, 2012, 06:32:48 AM »

David, I've been busy work on attractors today but your code looks like it produces some interesting results.
Thanks smiley

Here is my implementation of "Orderly Attractors" where each point in a list seeks out the next in the list while leaving a trail behind. The last seeks the first forming a loop.
More stuff like this to come folks. smiley



* attractor.png (157.26 KB, 640x480 - viewed 298 times.)
Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
CUDA Programming with Ruby Programming ker2x 1 2958 Last post September 28, 2010, 09:55:46 PM
by ker2x
Programming and syncing Axe FX 2 with UNO chipped Beringher FCB 1010 Fractal Music lethal_leigh 1 2724 Last post January 28, 2013, 06:30:29 AM
by 0Encrypted0
(non fractal) OpenCL programming example Programming hobold 10 2826 Last post April 22, 2013, 11:36:50 PM
by flexiverse
Where can i get some more info bout programming in fragmentarium Fragmentarium « 1 2 » Haven 16 9179 Last post February 20, 2016, 09:56:43 AM
by 3dickulus
Programming tutorial for SPH simulation Programming ker2x 2 2012 Last post April 13, 2017, 04:18:46 PM
by _revers_

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.189 seconds with 25 queries. (Pretty URLs adds 0.009s, 2q)