Binary Pattern (Image generation)

From Wikipedia, the free encyclopedia

Color = x or y
Color = x or y
Example of tileable image
Example of tileable image

Binary pattern is an image produced by a formula that includes binary operations and results in a 32bit integer number. These patterns are closely tied to the 32bit RGB color system. These patterns may be used with any integer numbers.

The most simple pattern is x or y, result of which will be pixel color (in RGB), where x and y represent coordinates of image pixel we search. x or y operation where x and y are 32bit numbers is per-bit or. For example, if we have 108 (1101100) and 226 (11100010) then 108 or 226 is 238 (11101110). This pattern is not restricted only to 2D, and can be extended into higher dimensions such as 3D.

[edit] Uses

  • Color generation - possibility to create dozens of new colors, which wont be close to any of basic colors, such as Red, Green, Blue, etc.
  • Desktop backgrounds - using several filters its possible to archieve nice pattens, which may be tiled on desktop screen
  • Texture generation - different formulas may provide images suitable for procedural image generation, for example creating carpets or walls