aboutsummaryrefslogtreecommitdiffstats
path: root/TriangleFractalChaos.h
blob: 87c74d6d008c885ceb848175d970886b6e29ec6d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <QWidget>
#include <QPoint>
class QTimer;
class QSpinBox;
class QLabel;
class QPushButton;
class QImage;

class TriangleFractalChaos : public QWidget
{
    Q_OBJECT

public:
    TriangleFractalChaos(QWidget *parent = 0);

private:
    QSpinBox *magnification;
    QLabel *magnificationLabel;
    QSpinBox *delay;
    QLabel *delayLabel;
    QPushButton *generate;
    QImage *dots;
    QPoint startingPoints[3];
    QPoint lastPoint;
    QTimer *drawTimer;
    void startDrawing();

private slots:
    void drawDot();
    void toggleDraw();
};