openrndr / org.openrndr.shape / CompositionDrawer

CompositionDrawer

class CompositionDrawer (source)

A Drawer-like interface for the creation of Compositions This should be easier than creating Compositions manually

Constructors

<init>

A Drawer-like interface for the creation of Compositions This should be easier than creating Compositions manually

CompositionDrawer()

Properties

composition

val composition: Composition

fill

var fill: ColorRGBa?

model

var model: Matrix44

root

val root: GroupNode

stroke

var stroke: ColorRGBa?

strokeWeight

var strokeWeight: Double

Functions

circle

fun circle(position: Vector2, radius: Double): Unit
fun circle(circle: Circle): Unit

circles

fun circles(circles: List<Circle>): Unit
fun circles(positions: List<Vector2>, radius: Double): Unit
fun circles(positions: List<Vector2>, radii: List<Double>): Unit

contour

fun contour(contour: ShapeContour): Unit

contours

fun contours(contours: List<ShapeContour>): Unit

group

fun group(builder: CompositionDrawer.() -> Unit): Unit

lineLoop

fun lineLoop(points: List<Vector2>): Unit

lineSegment

fun lineSegment(start: Vector2, end: Vector2): Unit
fun lineSegment(lineSegment: LineSegment): Unit

lineSegments

fun lineSegments(lineSegments: List<LineSegment>): Unit

lineStrip

fun lineStrip(points: List<Vector2>): Unit

popModel

fun popModel(): Unit

pushModel

fun pushModel(): Unit

rectangle

fun rectangle(rectangle: Rectangle): Unit
fun rectangle(x: Double, y: Double, width: Double, height: Double): Unit

rectangles

fun rectangles(rectangles: List<Rectangle>): Unit
fun rectangles(positions: List<Vector2>, width: Double, height: Double): Unit
fun rectangles(positions: List<Vector2>, dimensions: List<Vector2>): Unit

rotate

fun rotate(rotationInDegrees: Double): Unit

scale

fun scale(s: Double): Unit
fun scale(x: Double, y: Double): Unit

shape

fun shape(shape: Shape): Unit

shapes

fun shapes(shapes: List<Shape>): Unit

text

fun text(text: String, position: Vector2): Unit

textOnContour

fun textOnContour(text: String, path: ShapeContour): Unit

texts

fun texts(text: List<String>, positions: List<Vector2>): Unit

translate

fun translate(x: Double, y: Double): Unit
fun translate(t: Vector2): Unit