2 * Copyright 2010-2011, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
6 * Geoffry Song, goffrie@gmail.com
12 #include <ScreenSaver.h>
15 class Butterfly
: public BScreenSaver
{
17 Butterfly(BMessage
* archive
, image_id imageID
);
19 virtual void StartConfig(BView
* view
);
20 virtual status_t
StartSaver(BView
* view
, bool preview
);
21 virtual void Draw(BView
* view
, int32 frame
);
24 inline rgb_color
_HueToColor(float hue
);
25 inline BPoint
_Iterate();
28 // base value for calculating the curves on each iteration
30 // previously calculated points
32 // transformation from graph coordinates to view coordinates
35 // bounding box of drawn figure
40 #endif // _BUTTERFLY_H_