1

I have been trying to create a random black and white mask like the following in Inkscape without success:

enter image description here

My nearest try has been to use black as initial color for the clones, 100% of change of color lightness for each column and alternate the sign of color changes. The result is this chessboard-like mask

enter image description here

The randomize option does not work because it randomizes the color property and not the "index" of the clone whose color is to be switched.

Note: Although my first approach was through the user interface, solutions using the scripting capabilities of Inskcape are also welcome.

1 Answers1

1

I tried the following approach:

  1. Make an original tile with undefined color (shown as ?)
  2. Make a row of tiled clones, with initial color black, and 100% random light component. This will result in a row of random gray levels.
  3. Group all the tiles together and select the group.
  4. Apply the extension Color->Black & White to turn those grays into either black or white.
Juancho
  • 7,207
  • 27
  • 31