Board  0.9.5
Functions | Variables
line_segment.cpp File Reference

Sample drawing using the board library. More...

#include <cmath>
#include "Board.h"

Functions

void drawPixel (Board &board, int x, int y)
 
void drawLine (Board &board, double x1, double y1, double x2, double y2)
 
int main (int, char *[])
 

Variables

const int PIXEL_WIDTH = 30
 
const int IMAGE_HALF_SIDE = 15
 

Detailed Description

Sample drawing using the board library.

Author
Sebastien Fourey (GREYC)

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://foureys.users.greyc.fr