File:Color gradient illustrating a sorites paradox.png
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this preview: 800 × 100 pixels. Other resolutions: 320 × 40 pixels | 640 × 80 pixels | 1,024 × 128 pixels | 1,280 × 160 pixels | 8,192 × 1,024 pixels.
Original file (8,192 × 1,024 pixels, file size: 57 KB, MIME type: image/png)
File information
Structured data
Captions
Summary
[edit]
File:Color gradient illustrating a sorites paradox with labels.png
DescriptionColor gradient illustrating a sorites paradox.png |
English: Color gradient from green to red, any adjacent colors being indistinguishable for the human eye (composed of 256 rectangles of wd=32, hg=1024 of really unique color: #00ff00, #01fe00, #02fd00, ..., #fe0100, #ff0000) |
Date | |
Source | Own work |
Author | Jochen Burghardt |
C source code
[edit]C cource of pnm image
|
---|
#include <stdio.h>
typedef int xT; /* x coordinate */
typedef int yT; /* y coordinate */
typedef int coT; /* rgb color value */
static void build(
xT wd,
yT HG)
{
yT y;
coT r;
xT x;
printf("P3\t%d %d\t255\n",wd*256,HG);
for (y=0; y<HG; ++y) {
for (r=0; r<256; ++r) {
coT const g = 255 - r;
coT const b = 0;
for (x=0; x<wd; ++x) {
printf("%03d %03d %03d ",r,g,b);
}
printf("\n");
}
printf("\n");
}
}
int main(
int argc,
const char * const argv[argc])
{
build(32,1024);
return 0;
}
// after compiling, run "a.out | pnmtopng >Color_gradient_illustrating_a_sorites_paradox.png" to obtain image
|
Public domainPublic domainfalsefalse |
This work is ineligible for copyright and therefore in the public domain because it consists entirely of information that is common property and contains no original authorship. |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 19:59, 7 November 2013 | 8,192 × 1,024 (57 KB) | Jochen Burghardt (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on en.wikipedia.org
- Usage on ja.wikibooks.org