Liking cljdoc? Tell your friends :D

org.soulspace.clj.java.awt.graphics


alpha-interpolation-hintsclj


antialias-hintsclj


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.
raw 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.
raw docstring

buffered-imageclj

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

Creates a buffered image.

Creates a buffered image.
raw 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.
raw docstring

color-render-hintsclj


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.
raw docstring

cubic-curve2dclj

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

Creates a 2d cubic curve.

Creates a 2d cubic curve.
raw docstring

dither-hintsclj


drawclj

(draw gfx e)
(draw gfx e color)

Draws an element.

Draws an element.
raw docstring

draw-circleclj

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

Draws a circle.

Draws a circle.
raw docstring

draw-ellipseclj

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

Draws an ellipse.

Draws an ellipse.
raw docstring

draw-imageclj

(draw-image gfx img x y)

Draws an image using the graphics context.

Draws an image using the graphics context.
raw 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.
raw docstring

draw-stringclj

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

Draws a string.

Draws a string.
raw docstring

ellipse2dclj

(ellipse2d x y w h)

Creates a 2d ellipse.

Creates a 2d ellipse.
raw docstring

fillclj

(fill gfx e)
(fill gfx e color)

Draws a filled element.

Draws a filled element.
raw docstring

fill-circleclj

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

Draws a filled circle.

Draws a filled circle.
raw 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.
raw 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.
raw 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.
raw docstring

fractional-metrics-hintsclj


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.
raw 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.
raw docstring

image-typeclj


interpolation-hintsclj


line2dclj

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

Creates a 2d line.

Creates a 2d line.
raw docstring

point-coordinatesclj

(point-coordinates point)

Returns the x/y coordinates of the point.

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

point2dclj

(point2d x y)

Creates a 2d point.

Creates a 2d point.
raw docstring

quad-curve2dclj

(quad-curve2d x1 y1 ctrlx ctrly x2 y2)

Creates a 2d quadratic curve.

Creates a 2d quadratic curve.
raw docstring

read-imageclj

(read-image src)

Reads an image.

Reads an image.
raw docstring

rectangle2dclj

(rectangle2d x y w h)

Creates a 2d rectangle.

Creates a 2d rectangle.
raw docstring

render-hintsclj


rendering-hint-keysclj


round-rectangle2dclj

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

Creates a 2d rounded rectangle.

Creates a 2d rounded rectangle.
raw docstring

set-colorclj

(set-color gfx color)

Sets the color of the graphics context gfx.

Sets the color of the graphics context gfx.
raw docstring

set-fontclj

(set-font gfx font)

Sets the fon of the graphics context gfx.

Sets the fon of the graphics context gfx.
raw 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.
raw 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.
raw docstring

stroke-cap-stylesclj


stroke-hintsclj


stroke-join-stylesclj


text-antialias-hintsclj


texture-paintclj

(texture-paint texture anchor)

Create a texture paint.

Create a texture paint.
raw 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.
raw docstring

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

× close