(clear-rect x y width height)
Fills a rectangular shape with the current background color
Fills a rectangular shape with the current background color
(create-window name
x
y
width
height
title
{:keys [color resizable? icon-path on-close hide-title-bar?]
:or {color Color/white
resizable? false
icon-path nil
on-close exit
hide-title-bar? false}})
Creates and displays a window. Returns a map consisting of the window and the canvas
Creates and displays a window. Returns a map consisting of the window and the canvas
(ellipse x y width height color fill?)
(ellipse x y width height color fill? thickness)
Draw an ellipse onto the window
Draw an ellipse onto the window
(get-text-dimensions window text font-size)
Gets the width and the height of a given text
Gets the width and the height of a given text
(image picture x y background-color)
(image picture x y width height background-color)
Display a image onto the window
Display a image onto the window
(line x0 y0 x1 y1 color)
(line x0 y0 x1 y1 color thickness)
Draw a line onto the window
Draw a line onto the window
(path->Image file-path)
Load a Image from its location into memory
Load a Image from its location into memory
(properties {:keys [frame canvas]})
Gets the properties of the context, which is the map returned by 'create-window' function
Gets the properties of the context, which is the map returned by 'create-window' function
(rect x y width height color fill?)
(rect x y width height color fill? thickness)
Draw a rectangle onto the window
Draw a rectangle onto the window
(text x y content color font-size)
(text x y content color font-size style)
Display a text onto the window
Display a text onto the window
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close