File:XOR texture.png
XOR_texture.png (256 × 256 pixels, file size: 630 bytes, MIME type: image/png)
Captions
Summary
[edit]DescriptionXOR texture.png |
Русский: Процедурная текстура, полученная вычислением функции XOR (исключающее ИЛИ). Polski: Proceduralna tekstura, uzyskana poprzez obliczenie funkcji XOR (XOR). English: Procedural texture obtained by computing the XOR (exclusive OR) function. |
Date | |
Source | Own work |
Author | Vort |
Other versions |
|
C++ Source Code
[edit]#include <fstream>
int main()
{
std::ofstream file;
file.open("xor.ppm");
file << "P2 256 256 255\n";
for (int i = 0; i < 256; i++)
for (int j = 0; j < 256; j++)
file << (i ^ j) << ' ';
file.close();
return 0;
}
To compile:
g++ d.cpp -Wall
to run :
./a.out
Licensing
[edit]This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. | |
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 08:04, 5 February 2016 | 256 × 256 (630 bytes) | Vort (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
The following page uses this file:
File usage on other wikis
The following other wikis use this file:
- Usage on pl.wikipedia.org
- Usage on pl.wikibooks.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Horizontal resolution | 28.35 dpc |
---|---|
Vertical resolution | 28.35 dpc |