File:Color gradient illustrating a sorites paradox.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(8,192 × 1,024 pixels, file size: 57 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

File:Color gradient illustrating a sorites paradox with labels.png
Description
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
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/TimeThumbnailDimensionsUserComment
current19:59, 7 November 2013Thumbnail for version as of 19:59, 7 November 20138,192 × 1,024 (57 KB)Jochen Burghardt (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file: