WideBoyDixon Posted June 3, 2009 Share Posted June 3, 2009 (edited) Well, I looked around for this elsewhere but only found an implementation using asterisks and spaces. It didn't update too good either. I made this in a spare hour today; thought I'd throw it out there for fun.The code can be downloaded from HERE.It's not a complete work by any means. Ideally there'd be an associated UI and the ability to set your own starting pattern. Use the Global Const to make changes as required. Beware that it sucks CPU if you set the $timerDelay down too low.Have fun.WBDEDIT: 4-June-2009You now have the ability to set your own starting pattern which you can draw with the mouse.Press "R" to set a random patternPress "C" to clear the patternPress "F5" to run the pattern Edited June 4, 2009 by WideBoyDixon [center]Wide by name, Wide by nature and Wide by girth[u]Scripts[/u]{Hot Folders} {Screen Calipers} {Screen Crosshairs} {Cross-Process Subclassing} {GDI+ Clock} {ASCII Art Signatures}{Another GDI+ Clock} {Desktop Goldfish} {Game of Life} {3D Pie Chart} {Stock Tracker}[u]UDFs[/u]{_FileReplaceText} {_ArrayCompare} {_ToBase}~ My Scripts On Google Code ~[/center] Link to comment Share on other sites More sharing options...
Triblade Posted June 3, 2009 Share Posted June 3, 2009 Allways fun to watch something like this They stopped moving after a minute or two. Aww, they died.. My active project(s): A-maze-ing generator (generates a maze) My archived project(s): Pong3 (Multi-pinger) Link to comment Share on other sites More sharing options...
crashdemons Posted June 3, 2009 Share Posted June 3, 2009 (edited) By the way:An example of a modified "Game of Life" visualization is present in YahELite's "/egg 2" command. [if in doubt, check the credits for YahELite, Conway is listed ][sS]Quite a strange and psychedelic display.I'm also tempted to try something similar, but we'll see how much free time I have first.Edit: I found This page containing an applet for another implementation. (Source available)Edit: and this. Edited June 3, 2009 by crashdemons My Projects - WindowDarken (Darken except the active window) Yahsmosis Chat Client (Discontinued) StarShooter Game (Red alert! All hands to battlestations!) YMSG Protocol Support (Discontinued) Circular Keyboard and OSK example. (aka Iris KB) Target Screensaver Drive Toolbar Thingy Rollup Pro (Minimize-to-Titlebar & More!) 2D Launcher physics example Ascii Screenshot AutoIt3 Quine Example ("Is a Quine" is a Quine.) USB Lock (Another system keydrive - with a toast.) Link to comment Share on other sites More sharing options...
WideBoyDixon Posted June 4, 2009 Author Share Posted June 4, 2009 Updated. See the first post for details. It's also a little more efficient (hopefully) on the drawing code since it doesn't draw cells that haven't changed from one iteration to the next. WBD [center]Wide by name, Wide by nature and Wide by girth[u]Scripts[/u]{Hot Folders} {Screen Calipers} {Screen Crosshairs} {Cross-Process Subclassing} {GDI+ Clock} {ASCII Art Signatures}{Another GDI+ Clock} {Desktop Goldfish} {Game of Life} {3D Pie Chart} {Stock Tracker}[u]UDFs[/u]{_FileReplaceText} {_ArrayCompare} {_ToBase}~ My Scripts On Google Code ~[/center] Link to comment Share on other sites More sharing options...
UEZ Posted June 4, 2009 Share Posted June 4, 2009 Looks really nice WBD. I had this always in mind to code GoL, too!Personally the grid color is too bright. It looks better when it set darker, e.g. Global $hPen = _GDIPlus_PenCreate(0x7F3F3F3F) (my subjective opinion).Keep your good work up!UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
WideBoyDixon Posted June 4, 2009 Author Share Posted June 4, 2009 UEZ I think you're right about the grid. The other thing I never mentioned about the code is the function to create an angled gradient line brush; I haven't seen this elsewhere so perhaps it might be useful to someone. WBD [center]Wide by name, Wide by nature and Wide by girth[u]Scripts[/u]{Hot Folders} {Screen Calipers} {Screen Crosshairs} {Cross-Process Subclassing} {GDI+ Clock} {ASCII Art Signatures}{Another GDI+ Clock} {Desktop Goldfish} {Game of Life} {3D Pie Chart} {Stock Tracker}[u]UDFs[/u]{_FileReplaceText} {_ArrayCompare} {_ToBase}~ My Scripts On Google Code ~[/center] Link to comment Share on other sites More sharing options...
UEZ Posted June 4, 2009 Share Posted June 4, 2009 Of course I recognized the gratient line brush UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now