Just a quick question: Is there a way in Golly to get Random Fill probabilities inferior to 1% with/without scripting?.
Thanks in advance.
[Golly] Random Fill probability < 1%
- DivusIulius
- Posts: 89
- Joined: April 1st, 2009, 11:23 am
- Contact:
Re: [Golly] Random Fill probability < 1%
Here's a (clumsy) way without scripting:
- Create an empty selection and randomly fill it at 50%.
- Use Prefs > Edit to change the percentage to 1%.
- Randomly fill the selection again (now at 1%).
- Copy this 1% selection to the clipboard.
- Undo back to the 50% selection.
- Edit > Paste Mode > And.
- Edit > Paste to Selection.
- Now the selection density should be about 0.5%.
Clearly if you want to do this a lot it would be better to write a custom script. A good place to start would be random-fill.py in the scripts database (Help > Online Archives > Golly Scripts Database, then ctrl-click on that script).
- Create an empty selection and randomly fill it at 50%.
- Use Prefs > Edit to change the percentage to 1%.
- Randomly fill the selection again (now at 1%).
- Copy this 1% selection to the clipboard.
- Undo back to the 50% selection.
- Edit > Paste Mode > And.
- Edit > Paste to Selection.
- Now the selection density should be about 0.5%.
Clearly if you want to do this a lot it would be better to write a custom script. A good place to start would be random-fill.py in the scripts database (Help > Online Archives > Golly Scripts Database, then ctrl-click on that script).
- DivusIulius
- Posts: 89
- Joined: April 1st, 2009, 11:23 am
- Contact:
Re: [Golly] Random Fill probability < 1%
Hey, such a sweet idea! Thank you!Andrew wrote:Here's a (clumsy) way without scripting.