#include #include "image.h" #define TOPX 400 #define TOPY 50 #define RW 80 #define RH 100 #define SHIFT 10 int main() { char image[HEIGHT][WIDTH][COLORS]; char color[COLORS], black[COLORS], white[COLORS]; int r,g,b,i; setColor(black,0,0,0); setColor(white,255,255,255); blankImage(image,black); blankImage(image,white); r=100;g=100; b=200; for (i=0; i<=10; i++) { setColor(color,r,g,b); putRectangle(image, TOPY+i*SHIFT, TOPX-i*SHIFT, RH,RW, color); r+=10; b+=10; g+=10; } drawImage(image); return 0; }