Liking cljdoc? Tell your friends :D

org.soulspace.clj.java.awt.graphics

Functions for creating graphics with AWT.

Functions for creating graphics with AWT.
raw docstring

alpha-interpolation-hintsclj

source

antialias-hintsclj

source

arc2dclj

(arc2d ellipse-bounds start extend arc-type)
(arc2d x y w h start extend arc-type)

Creates a 2d arc.

Creates a 2d arc.
sourceraw docstring

basic-strokeclj

(basic-stroke)
(basic-stroke width)
(basic-stroke width cap-style join-style)
(basic-stroke width cap-style join-style miter-limit)
(basic-stroke width cap-style join-style miter-limit dash dash-phase)

Creates basic strokes.

Creates basic strokes.
sourceraw docstring

buffered-imageclj

(buffered-image src)
(buffered-image width height type)

Creates a buffered image.

Creates a buffered image.
sourceraw docstring

centered-circle2dclj

(centered-circle2d x y r)

Creates a 2d ellipse reperesenting a circle with the center x, y and radius r.

Creates a 2d ellipse reperesenting a circle with the center x, y and radius r.
sourceraw docstring

color-render-hintsclj

source

create-graphics-from-imageclj

(create-graphics-from-image img)

Creates a graphics context from the a buffered image.

Creates a graphics context from the a buffered image.
sourceraw docstring

cubic-curve2dclj

(cubic-curve2d x1 y1 ctrlx1 ctrly1 ctrlx2 ctrly2 x2 y2)

Creates a 2d cubic curve.

Creates a 2d cubic curve.
sourceraw docstring

dither-hintsclj

source

drawclj

(draw gfx e)
(draw gfx e color)

Draws an element.

Draws an element.
sourceraw docstring

draw-circleclj

(draw-circle gfx x y diameter)
(draw-circle gfx x y diameter color)

Draws a circle.

Draws a circle.
sourceraw docstring

draw-ellipseclj

(draw-ellipse gfx x y w h)
(draw-ellipse gfx x y w h color)

Draws an ellipse.

Draws an ellipse.
sourceraw docstring

draw-imageclj

(draw-image gfx img x y)

Draws an image using the graphics context.

Draws an image using the graphics context.
sourceraw docstring

draw-lineclj

(draw-line gfx p1 p2)
(draw-line gfx p1 p2 color)
(draw-line gfx x1 y1 x2 y2)
(draw-line gfx x1 y1 x2 y2 color)

Draws a line.

Draws a line.
sourceraw docstring

draw-stringclj

(draw-string gfx s x y)
(draw-string gfx s x y color)

Draws a string.

Draws a string.
sourceraw docstring

ellipse2dclj

(ellipse2d x y w h)

Creates a 2d ellipse.

Creates a 2d ellipse.
sourceraw docstring

fillclj

(fill gfx e)
(fill gfx e color)

Draws a filled element.

Draws a filled element.
sourceraw docstring

fill-circleclj

(fill-circle gfx x y diameter)
(fill-circle gfx x y diameter color)

Draws a filled circle.

Draws a filled circle.
sourceraw docstring

fill-colored-rectclj

(fill-colored-rect gfx x y width height color)

Draws a filled rectangle with the given color.

Draws a filled rectangle with the given color.
sourceraw docstring

fill-ellipseclj

(fill-ellipse gfx x y w h)
(fill-ellipse gfx x y w h color)

Draws a filled ellipse.

Draws a filled ellipse.
sourceraw docstring

fill-rectclj

(fill-rect gfx x y width height)
(fill-rect gfx x y width height color)

Draws a filled rectangle.

Draws a filled rectangle.
sourceraw docstring

fractional-metrics-hintsclj

source

get-rgbclj

(get-rgb img [x y])
(get-rgb img x y)

Returns the rgb value of the pixel at the coordinates x,y in the image.

Returns the rgb value of the pixel at the coordinates x,y in the image.
sourceraw docstring

gradient-paintclj

(gradient-paint p1 color1 p2 color2)
(gradient-paint p1 color1 p2 color2 cyclic)
(gradient-paint x1 y1 color1 x2 y2 color2)
(gradient-paint x1 y1 color1 x2 y2 color2 cyclic)

Create a gradient paint.

Create a gradient paint.
sourceraw docstring

image-typeclj

source

interpolation-hintsclj

source

line2dclj

(line2d [x1 y1] [x2 y2])
(line2d x1 y1 x2 y2)

Creates a 2d line.

Creates a 2d line.
sourceraw docstring

point-coordinatesclj

(point-coordinates point)

Returns the x/y coordinates of the point.

Returns the x/y coordinates of the point.
sourceraw docstring

point2dclj

(point2d x y)

Creates a 2d point.

Creates a 2d point.
sourceraw docstring

quad-curve2dclj

(quad-curve2d x1 y1 ctrlx ctrly x2 y2)

Creates a 2d quadratic curve.

Creates a 2d quadratic curve.
sourceraw docstring

read-imageclj

(read-image src)

Reads an image.

Reads an image.
sourceraw docstring

rectangle2dclj

(rectangle2d x y w h)

Creates a 2d rectangle.

Creates a 2d rectangle.
sourceraw docstring

render-hintsclj

source

rendering-hint-keysclj

source

round-rectangle2dclj

(round-rectangle2d x y w h arc-w arc-h)

Creates a 2d rounded rectangle.

Creates a 2d rounded rectangle.
sourceraw docstring

set-colorclj

(set-color gfx color)

Sets the color of the graphics context gfx.

Sets the color of the graphics context gfx.
sourceraw docstring

set-fontclj

(set-font gfx font)

Sets the fon of the graphics context gfx.

Sets the fon of the graphics context gfx.
sourceraw docstring

set-rendering-hintclj

(set-rendering-hint gfx hint-key hint-value)

Sets a rendering hint on the graphics context.

Sets a rendering hint on the graphics context.
sourceraw docstring

set-rgbclj

(set-rgb img [x y] v)
(set-rgb img x y v)

Sets the rgb value of the pixel at the coordinates x,y in the image.

Sets the rgb value of the pixel at the coordinates x,y in the image.
sourceraw docstring

stroke-cap-stylesclj

source

stroke-hintsclj

source

stroke-join-stylesclj

source

text-antialias-hintsclj

source

texture-paintclj

(texture-paint texture anchor)

Create a texture paint.

Create a texture paint.
sourceraw docstring

write-imageclj

(write-image img format file)

Writes an image in the given format to the file.

Writes an image in the given format to the file.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close