Blame heliantus/drawing.h

3f9996
#ifndef HELI_DRAWING_H
3f9996
#define HELI_DRAWING_H
3f9996
3f9996
3f9996
#include "common.h"
3f9996
8535a3
typedef enum _HAlign {
3f9996
	HALIGN_LEFT,
3f9996
	HALIGN_CENTER,
3f9996
	HALIGN_RIGHT
8535a3
} HAlign;
3f9996
8535a3
typedef enum _VAlign {
3f9996
	VALIGN_TOP,
3f9996
	VALIGN_CENTER,
3f9996
	VALIGN_BOTTOM
8535a3
} VAlign;
3f9996
3f9996
8535a3
void background(const char *color);
8535a3
void fill(const char *color);
3f9996
void noFill();
8535a3
void stroke(const char *color);
3f9996
void noStroke();
3f9996
void strokeWeight(double weight);
3f9996
char* rgb(double r, double g, double b);
3f9996
char* rgba(double r, double g, double b, double a);
3f9996
void rect(double x, double y, double width, double height);
3f9996
void ellipse(double x, double y, double width, double height);
8535a3
void text(const char *text, double x, double y);
3f9996
void textAlign(HAlign hor, VAlign vert);
8535a3
void textFont(const char *font);
3f9996
void textSize(double size);
3f9996
void arc(double x, double y, double w, double h, double start, double stop);
07b70f
void arcPath(double x, double y, double w, double h, double start, double stop);
07b70f
void line(double x1, double y1, double x2, double y2);
3f9996
void point(double x, double y);
3f9996
void regularPolygon(double x, double y, int sides, double size);
07b70f
3f9996
void moveTo(double x, double y);
3f9996
void lineTo(double x, double y);
07b70f
void resetPath();
07b70f
void closePath();
07b70f
void strokePath();
3f9996
3f9996
3f9996
#endif
3f9996