Pas de dépendances
#include <windows.h> int main() { int i,j; HWND Hcon = GetConsoleWindow(); HDC Hdc = GetDC(Hcon); for(i=0;i<255;i++) { for(j=0;j<255;j++) { COLORREF COLOR = RGB(i,j,128); SetPixel(Hdc,i,j,COLOR); } } ReleaseDC(Hcon, Hdc); return 0; }
No explanations yet.