Binary pattern (image generation)

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Color = x or y
Example of tileable image

Binary pattern is an image produced by a formula that includes binary operations and results in a 32-bit integer number. These patterns are closely tied to the 32-bit 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 32-bit 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.

Uses[edit]

  • Color generation – possibility to create dozens of new colors, which won't be close to any of basic colors, such as Red, Green, Blue, etc.
  • Desktop backgrounds – using several filters its possible to achieve nice patterns, 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

References[edit]