File:Color gradient illustrating a sorites paradox.png

From formulasearchengine
Jump to navigation Jump to search

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

This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

Summary

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

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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

27 June 2013

image/png

4e7db30cce81773b6e736a421a1c94a0b4e66ab3

58,328 byte

1,024 pixel

8,192 pixel

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current21:59, 7 November 2013Thumbnail for version as of 21:59, 7 November 20138,192 × 1,024 (57 KB)wikimediacommons>Jochen BurghardtUser created page with UploadWizard

There are no pages that use this file.