glee_gd

Types

pub type Color =
  #(Float, Float, Float, Float)
pub type Image =
  Pid
pub type Pid
pub type Point =
  #(Int, Int)
pub type RGB =
  #(Int, Int, Int)

Functions

pub fn arc(
  image: Pid,
  p1: #(Int, Int),
  p2: #(Int, Int),
  color: #(Float, Float, Float, Float),
) -> Nil
pub fn arcd(
  image: Pid,
  p1: #(Int, Int),
  p2: #(Int, Int),
  d: Int,
  color: #(Float, Float, Float, Float),
) -> Nil
pub fn color(
  color: #(Int, Int, Int),
) -> #(Float, Float, Float, Float)
pub fn create(width: Int, height: Int) -> Pid
pub fn destroy(image: Pid) -> Nil
pub fn filled_ellipse(
  image: Pid,
  p1: #(Int, Int),
  p2: #(Int, Int),
  color: #(Float, Float, Float, Float),
) -> Nil
pub fn filled_rectangle(
  image: Pid,
  p1: #(Int, Int),
  p2: #(Int, Int),
  color: #(Float, Float, Float, Float),
) -> Nil
pub fn filled_triangle(
  image: Pid,
  p1: #(Int, Int),
  p2: #(Int, Int),
  p3: #(Int, Int),
  color: #(Float, Float, Float, Float),
) -> Nil
pub fn information(image: Pid) -> Nil
pub fn line(
  image: Pid,
  p1: #(Int, Int),
  p2: #(Int, Int),
  color: #(Float, Float, Float, Float),
) -> Nil
pub fn polygon(
  image: Pid,
  points: List(#(Int, Int)),
  color: #(Float, Float, Float, Float),
) -> Nil
pub fn rectangle(
  image: Pid,
  p1: #(Int, Int),
  p2: #(Int, Int),
  color: #(Float, Float, Float, Float),
) -> Nil
pub fn render(image: Pid) -> String
Search Document