pakt29

#include "cinder/app/AppBasic.h"
#include "cinder/cairo/Cairo.h"

using namespace ci;
using namespace ci::app;
using namespace std;

const int WIDTH= 640;
const int HEIGHT= 480;

class pakt29App : public AppBasic {
public:
void prepareSettings(Settings *settings);
void setup();
void draw();
int index;
float w, h;
int cols, rows;
};

void pakt29App::prepareSettings(Settings *settings) {
settings->setWindowSize(WIDTH, HEIGHT);
settings->setResizable(false);
}

void pakt29App::setup() {
cols= 20;
rows= 20;
index= 0;
w= getWindowWidth();
h= getWindowHeight();
}

void pakt29App::draw() {

cairo::Context ctx= cairo::Context(cairo::createWindowSurface());
ctx.setSourceRgb(0, 0, 0);
ctx.paint();

ctx.setLineCap(1);
ctx.setLineWidth(20.0);
for(int x= 0; x dashes;
for(int y= 0; y