33#include "ramCanvas.hpp"
37 const int wide = 4096/1;
38 const int tall = 2048/1;
40 mjr::ramCanvas3c8b cRamCanvas(wide, tall);
41 mjr::ramCanvas1c8b mRamCanvas(wide, tall);
44 char const *colors[numc] = {
"white",
"red",
"green",
"blue",
"magenta",
"cyan",
"yellow" };
46 cRamCanvas.clrCanvasToBlack();
47 for(
int i=1; i<wide/gap; i++)
48 cRamCanvas.drawLine(i*gap, 0, i*gap, (tall-1), colors[i%numc]);
49 for(
int i=1; i<tall/gap; i++)
50 cRamCanvas.drawLine(0, i*gap, (wide-1), i*gap, colors[i%numc]);
51 cRamCanvas.writeTIFFfile(
"test_images_ccgrid.tiff");
53 for(
int j=1; j<tall/gap/2+1; j++) {
54 for(
int i=(j-1)*4+1; i<wide/gap; i++) {
55 cRamCanvas.drawFillTriangle(i*gap, j*gap,
61 cRamCanvas.writeTIFFfile(
"test_images_ccgridt.tiff");
63 mRamCanvas.clrCanvasToBlack();
64 cRamCanvas.clrCanvasToBlack();
65 for(
int i=1; i<wide/gap; i++) {
66 cRamCanvas.drawLine(i*gap, 0, i*gap, (tall-1),
"white");
67 mRamCanvas.drawLine(i*gap, 0, i*gap, (tall-1),
"white");
69 for(
int i=1; i<tall/gap; i++) {
70 cRamCanvas.drawLine(0, i*gap, (wide-1), i*gap,
"white");
71 mRamCanvas.drawLine(0, i*gap, (wide-1), i*gap,
"white");
73 cRamCanvas.writeTIFFfile(
"test_images_mcgrid.tiff");
74 mRamCanvas.writeTIFFfile(
"test_images_mmgrid.tiff");
76 for(
int j=1; j<tall/gap/2+1; j++) {
77 for(
int i=(j-1)*4+1; i<wide/gap; i++) {
78 cRamCanvas.drawFillTriangle(i*gap, j*gap,
82 mRamCanvas.drawFillTriangle(i*gap, j*gap,
88 cRamCanvas.writeTIFFfile(
"test_images_mcgridt.tiff");
89 mRamCanvas.writeTIFFfile(
"test_images_mmgridt.tiff");
int main(int argc, char *argv[])