#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
|
| void | set_colour (Display *display, int s, Colormap cmap, unsigned int rgb_value) |
| |
| void | draw_section (Display *display, Window window, int s, Colormap cmap, unsigned int xpos, unsigned int ypos, unsigned int height, unsigned short index) |
| |
| void | draw_spiral (Display *display, Window window, int s, Colormap cmap, unsigned int xpos, unsigned int ypos, unsigned int height, unsigned int seed) |
| |
| int | main (void) |
| |
| #define M_PHI 1.618033988749895 |
| #define WINDOW_HEIGHT 1000 |
| void draw_section |
( |
Display * |
display, |
|
|
Window |
window, |
|
|
int |
s, |
|
|
Colormap |
cmap, |
|
|
unsigned int |
xpos, |
|
|
unsigned int |
ypos, |
|
|
unsigned int |
height, |
|
|
unsigned short |
index |
|
) |
| |
| void draw_spiral |
( |
Display * |
display, |
|
|
Window |
window, |
|
|
int |
s, |
|
|
Colormap |
cmap, |
|
|
unsigned int |
xpos, |
|
|
unsigned int |
ypos, |
|
|
unsigned int |
height, |
|
|
unsigned int |
seed |
|
) |
| |
| void set_colour |
( |
Display * |
display, |
|
|
int |
s, |
|
|
Colormap |
cmap, |
|
|
unsigned int |
rgb_value |
|
) |
| |