pakt16

#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 pakt16App : public AppBasic {
public:
void prepareSettings(Settings *settings);
void setup();
void draw();
int index;
float w, h;
float radius1, radius2, radius3;
float ex1, ex2, ex3;
float n;
};

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

void pakt16App::setup() {
index= 0;
w= getWindowWidth();
h= getWindowHeight();
}

void pakt16App::draw() {

radius1= sin(index*0.013)*0.3f+0.1f;
radius2= sin(index*0.021)*0.2f+0.25f;
radius3= sin(index*0.012)*0.1f+0.4f;
ex1= sin(index*0.0052)*3.0f+3.0f;
ex2= sin(index*0.0061)*6.0f+6.0f;
ex3= sin(index*0.0053)*2.0f+2.0f;
n= sin(index*0.001f)*40+50;

cairo::Context ctx= cairo::Context(cairo::createWindowSurface());

ctx.setSourceRgb(0.0, 0.0, 0.0);
ctx.paint();

ctx.setLineWidth(1.0);
ctx.translate(Vec2f(w*0.5f, h*0.5f));
for(int i= 0; i