(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)
(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
(properties {:keys [window 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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close