Way back in my college days, we studied Discrete Mathematics that concerned
itself with stuff like what you are trying to do. Producing every possible
permutation of a 60 x 60 pixel area even in black and white is an enormous
number. Something like 2 to the power of 3600. I am sure that an
implementation is possible in Lingo, but storing the results will likely be
difficult. Does it have to be a 60 x 60 pixel space? Could it be smaller?
As I recall, getting every permutation is analogous to an automobile
odometer; its furthest right wheel clicks over all possible combinations,
then the next wheel switches one position, and the furthest right wheel
clicks over all possible combinations again, etc. Except that the odometer
works in decimal, and you want to do the same thing in binary (or black and
white).
example:
Starting with all black, or all zero binary values,
0 0 0 0
Next combination,
0 0 0 1
Now the far right digit is exhausted, so we switch the next one,
0 0 1 0
Now back to the far right,
0 0 1 1
etc . .
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
Of course you have 3600 (60 x 60) bit positions!
That's the theory as I recall. I'm sure more info could be gotten from a
Discrete Mathematics text book, or a search on the web.
Good luck,
Shawn Dukes
650-429-3621
WWW.Hearme.com
Hearme - Live Voice on the web
----- Original Message -----
From: "mia" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 21, 2000 2:00 PM
Subject: <lingo-l> pixels
>
>
> hello everyone..
>
> im trying to create a script which would generate every single possible
> combination of the pixels (black or white) : how they could fill the
> space: 60 x 60 pixels
> --
> and then to be able to save these images directly to disk
>
> --
> is there any way of doing this in lingo???
> or does it need some other programming language..?
>
> ..
>
> thank you already for all possible help
>
> yours
> m.
>
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
> email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo. Thanks!]
>
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]