By Martin / The Lab, JavaScript / Thursday October 9th, 2008 / No comments
This is just a small and very simple chaos game written in JavaScript for the <canvas> element. It works in Firefox and Safari. Just an experiment - I have been reading "Introducing Fractal Geometry" (Icon Books 2000 / Totem Books 2001), which looks like it is written for 12-year olds - with big illustrations and short, simple phrases - but can only be fully understood by university mathematics students (i.e. not me). At least I got the bit on the chaos game!
Link: http://lab.aspektas.com/chaos_game.html
Good values are attractors: 3 and attraction: 1/2 (Serpinski Gasket) and attractors: 6 and attraction: 2/3 (Serpinski hexagon).
∎
I hope you enjoyed reading this article. If you wish, you may view some of the other recent or popular things I have written, or subscribe to receive RSS updates. You can also add a comment, or share this article on Twitter or Facebook, below.
Website copyright © Aspektas 2009 - 2010 Valid XHTML 1.0 Strict and CSS 2.1