Blame src/drawing.h

3f9996
#ifndef HELI_DRAWING_H
3f9996
#define HELI_DRAWING_H
3f9996
3f9996
3f9996
#include "common.h"
3f9996
3c0f7f
8535a3
void background(const char *color);
3954ba
8535a3
void fill(const char *color);
3f9996
void noFill();
8535a3
void stroke(const char *color);
3f9996
void noStroke();
3f9996
void strokeWeight(double weight);
3954ba
3954ba
void pushDrawingState();
3954ba
void popDrawingState();
3954ba
546e3a
const char* rgb(double r, double g, double b);
546e3a
const char* rgba(double r, double g, double b, double a);
3954ba
3f9996
void rect(double x, double y, double width, double height);
3f9996
void ellipse(double x, double y, double width, double height);
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