Supriya Ghosh (Editor)

Binary pattern (image generation)

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Binary pattern (image generation)

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

  • 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

    Binary pattern (image generation) Wikipedia


    Similar Topics