examples/koch.cpp File Reference

Draw a random complete graph. More...

#include <cstdlib>
#include <ctime>
#include <iostream>
#include <fstream>
#include <cmath>
#include <vector>
#include <utility>
#include "Board.h"

Functions

int coordinate (int width)
void Koch (ShapeList &board, const Color &color, Point p1, Point p2, int depth)
int main (int, char *[])

Variables

const int HALF_RAND = RAND_MAX/16
const double dy = 10


Detailed Description

Draw a random complete graph.

Author:
Sebastien Fourey <http://www.greyc.ensicaen.fr/~seb>
Date:
Tue Aug 21
This source code is part of the Board project, a C++ library whose purpose is to allow simple drawings in EPS, FIG or SVG files. Copyright (C) 2007 Sebastien Fourey <http://www.greyc.ensicaen.fr/~seb/>

Generated on Mon Jan 19 09:48:19 2009 for Board by  doxygen 1.5.6