pakt28

#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 pakt28App : public AppBasic {
public:
void prepareSettings(Settings *settings);
void setup();
void draw();
int index;
float w, h;
int n;
};

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

void pakt28App::setup() {
index= 0;
w= getWindowWidth()*0.5f;
h= getWindowHeight()*0.5f;
}

void pakt28App::draw() {

n= sin(index*0.0015f)*30.0f+35.0f;

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

for(int i= 0; i