File:Antialiased.png
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Antialiased.png (128 × 128 pixels, file size: 10 KB, MIME type: image/png)
File information
Structured data
Captions
Summary
[edit]DescriptionAntialiased.png |
English: antialiased chessboard |
Date | 03:57 Jan 24, 2003 (UTC)) |
Source | Own work |
Author | Loisel |
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license. | ||
| ||
This licensing tag was added to this file as part of the GFDL licensing update.http://creativecommons.org/licenses/by-sa/3.0/CC BY-SA 3.0Creative Commons Attribution-Share Alike 3.0truetrue |
C src code
[edit]generated by this code, which I (Loisel wrote myself
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <assert.h>
int color(double x, double y)
{
double t,z;
int i,j,k;
x=x/128.0-0.5;
y=y/2048.0;
t=1.0/(y+0.001);
z=t*x;
i=floor(t);
j=floor(z);
k=i+j;
// printf("%f %f -> %i %i %i\n",t,z,i,j,k%2);
return ((k%2)!=0);
}
double myrand()
{
return rand()/((double)RAND_MAX);
}
int main()
{
int i,j,k,l;
double x,y;
printf("P5\n128 128\n255\n");
srand(time(0));
for(i=0;i<128;i++)
for(j=0;j<128;j++)
{
k=0;
for(l=0;l<255;l++)
{
x=j+myrand();
y=i+myrand();
k+=color(x,y);
}
assert(k>=0 && k<=255);
putchar(k);
}
}
date/time | username | edit summary |
---|---|---|
19:22, 22 December 2004 | en:User:Quadell | (tagged) |
20:47, 6 December 2004 | en:User:Bernard Helmstetter | (code fix up) |
03:57, 24 January 2003 | en:User:Loisel | |
03:57, 24 January 2003 | en:User:Loisel | (antialiased chessboard) |
Original upload log
[edit]Legend: (cur) = this is the current file, (del) = delete this old version, (rev) = revert to this old version.
Click on date to download the file or see the image uploaded on that date.
- (del) (cur) 13:33, 30 September 2005 . . en:User:Riumplus Riumplus ( en:User_talk:Riumplus Talk) . . 128x128 (11600 bytes) (Losslessly recompressed the image, shrinking file size by 2%)
- (del) (rev) 20:28, 24 January 2003 . . en:User:Loisel Loisel ( en:User_talk:Loisel Talk) . . 128x128 (11861 bytes) (slightly improved image)
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 09:50, 17 May 2023 | 128 × 128 (10 KB) | Phreneticc (talk | contribs) | Reduced file weight with FileOptimizer in lossless compression mode. | |
03:09, 23 September 2010 | 128 × 128 (16 KB) | Ancient Anomaly (talk | contribs) | #808080 is NOT halfway between black and white, sRGB is not linear | ||
09:09, 26 July 2010 | 128 × 128 (11 KB) | Technion (talk | contribs) | Revert to original version of 18 March 2006 by Maksim, so that the image faithfully corresponds to the original source code. [Last modified version by Dicklyon results in gray at top of image being significantly lighter than halfway (#808080).] | ||
09:09, 23 December 2009 | 128 × 128 (12 KB) | Dicklyon (talk | contribs) | Adjust tone scale, since no gamma correction was included. | ||
16:53, 18 March 2006 | 128 × 128 (11 KB) | Maksim (talk | contribs) | La bildo estas kopiita de wikipedia:en. La originala priskribo estas: antialiased chessboard {{GFDL}} generated by this code, which I (Loisel 03:57 Jan 24, 2003 (UTC)) wrote myself <tt> #include <stdio.h> #include <stdlib.h> #include |
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 ar.wikipedia.org
- Usage on ca.wikipedia.org
- Usage on en.wikipedia.org
- Usage on es.wikipedia.org
- Usage on fa.wikipedia.org
- Usage on fr.wikipedia.org
- Utilisateur:Thor alansen
- Utilisateur:Webfractales
- Utilisateur:Bobby Disgracious
- Utilisateur:Yuleesize
- Utilisateur:CGM
- Utilisateur:Carlitotard
- Utilisateur:Nautre125
- Utilisateur:Spoke
- Modèle:Utilisateur ska
- Utilisateur:Flack~frwiki
- Utilisateur:Bazaar
- Utilisateur:Groben
- Utilisateur:Br1dil
- Utilisateur:Evaunit666
- Utilisateur:Fritz Tabz Flipp
- Utilisateur:Shigilop
- Utilisateur:Alexpunx67
- Utilisateur:It's-is-not-a-genitive~frwiki
- Utilisateur:Henrax
- Utilisateur:Drvk
- Utilisateur:Drvk/box
- Utilisateur:Benaddict
- Utilisateur:Step101
- Utilisateur:Sm'z
- Utilisateur:Tsunami330
- Utilisateur:Sankhu/gouts
- Utilisateur:Pmpmpm/Ma présentation, mes gouts, mes passions (Boites Utilisateurs)
- Utilisateur:AnticRab
- Utilisateur:Sugars
- Utilisateur:Pulpinus
- Utilisateur:On6kb
- Utilisateur:Tannwell
- Utilisateur:Vekip8
- Utilisateur:Lazyvee
- Utilisateur:Sarwell
- Utilisateur:Dryt
- Utilisateur:Skarock
- Utilisateur:Sonny Tuckson
- Utilisateur:Alex wpy
- Utilisateur:Murker
- Utilisateur:Ltalbot01
- Utilisateur:Flood lord
- Utilisateur:Oaks
View more global usage of this file.