glee_gd

Functions

pub fn arc(
  image: Pid,
  p1: #(Int, Int),
  p2: #(Int, Int),
  color: #(Float, Float, Float, Float),
) -> Pid
pub fn arcd(
  image: Pid,
  p1: #(Int, Int),
  p2: #(Int, Int),
  d: Int,
  color: #(Float, Float, Float, Float),
) -> Pid
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),
) -> Pid
pub fn filled_rectangle(
  image: Pid,
  p1: #(Int, Int),
  p2: #(Int, Int),
  color: #(Float, Float, Float, Float),
) -> Pid
pub fn filled_triangle(
  image: Pid,
  p1: #(Int, Int),
  p2: #(Int, Int),
  p3: #(Int, Int),
  color: #(Float, Float, Float, Float),
) -> Pid
pub fn information(image: Pid) -> Pid
pub fn line(
  image: Pid,
  p1: #(Int, Int),
  p2: #(Int, Int),
  color: #(Float, Float, Float, Float),
) -> Pid
pub fn polygon(
  image: Pid,
  points: List(#(Int, Int)),
  color: #(Float, Float, Float, Float),
) -> Pid
pub fn rectangle(
  image: Pid,
  p1: #(Int, Int),
  p2: #(Int, Int),
  color: #(Float, Float, Float, Float),
) -> Pid
pub fn render(image: Pid) -> String
Search Document