Module Claudius.Primitives

Primatives are a way to build up a list of rendering operations for the framebuffer in a functional style and then render them at once.

type point = {
  1. x : int;
  2. y : int;
}
type t =
  1. | Circle of point * float * int
  2. | FilledCircle of point * float * int
  3. | Ellipse of point * float * float * int
  4. | FilledEllipse of point * float * float * int
  5. | Line of point * point * int
  6. | Pixel of point * int
  7. | Polygon of point list * int
  8. | FilledPolygon of point list * int
  9. | Rect of point * point * int
  10. | FilledRect of point * point * int
  11. | Triangle of point * point * point * int
  12. | FilledTriangle of point * point * point * int
  13. | Char of point * Font.t * char * int
  14. | String of point * Font.t * string * int