Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f4b0f182e8
Fetching contributors…

Cannot retrieve contributors at this time

file 31 lines (22 sloc) 0.622 kb
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
//
// graphics.h
// StickyParticles
//
// Created by Alessandro Motta on 4/1/12.
//

#ifndef GRAPHICS_H
#define GRAPHICS_H

#include <stdbool.h>

#include "circle.h"
#include "rectangle.h"

// draws circ as filled or empty circle
extern void gfxCirc(circ_t circ, bool filled);

// clear the current buffer
extern void gfxClear();

// change current color to rgb
extern void gfxColor(double r, double g, double b);

// draw line from point x1, y1 to x2, y2
extern void gfxLine(double x1, double y1, double x2, double y2);

// draw rect as filled of empty rectangle
extern void gfxRect(rect_t rect, bool filled);

#endif
Something went wrong with that request. Please try again.