解説Color 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)
#include<stdio.h>typedefintxT;/* x coordinate */typedefintyT;/* y coordinate */typedefintcoT;/* rgb color value */staticvoidbuild(xTwd,yTHG){yTy;coTr;xTx;printf("P3\t%d %d\t255\n",wd*256,HG);for(y=0;y<HG;++y){for(r=0;r<256;++r){coTconstg=255-r;coTconstb=0;for(x=0;x<wd;++x){printf("%03d %03d %03d ",r,g,b);}printf("\n");}printf("\n");}}intmain(intargc,constchar*constargv[argc]){build(32,1024);return0;}// after compiling, run "a.out | pnmtopng >Color_gradient_illustrating_a_sorites_paradox.png" to obtain image