openrndr / org.openrndr.draw / ColorBufferShadow

ColorBufferShadow

interface ColorBufferShadow

Properties

buffer

abstract val buffer: ByteBuffer

colorBuffer

abstract val colorBuffer: ColorBuffer

Functions

destroy

abstract fun destroy(): Unit

download

abstract fun download(): Unit

flatMapIndexed

open fun <T> flatMapIndexed(xrange: IntProgression = 0 until this.colorBuffer.effectiveWidth, yrange: IntProgression = 0 until this.colorBuffer.effectiveHeight, mapper: (x: Int, y: Int, r: Double, g: Double, b: Double, a: Double) -> T): List<T>

get

open operator fun get(x: Int, y: Int): ColorRGBa

mapBoolean

abstract fun mapBoolean(mapper: (r: Double, g: Double, b: Double, a: Double) -> Boolean): Array<BooleanArray>

mapDouble

abstract fun mapDouble(mapper: (r: Double, g: Double, b: Double, a: Double) -> Double): Array<DoubleArray>

mapFloat

abstract fun mapFloat(mapper: (r: Double, g: Double, b: Double, a: Double) -> Float): Array<FloatArray>

mapIndexed

abstract fun <T> mapIndexed(xrange: IntProgression = 0 until this.colorBuffer.effectiveWidth, yrange: IntProgression = 0 until this.colorBuffer.effectiveHeight, mapper: (x: Int, y: Int, r: Double, g: Double, b: Double, a: Double) -> T): Array<List<T>>

mapInt

abstract fun mapInt(mapper: (r: Double, g: Double, b: Double, a: Double) -> Int): Array<IntArray>

read

abstract fun read(x: Int, y: Int): ColorRGBa

set

open operator fun set(x: Int, y: Int, c: ColorRGBa): Unit

upload

abstract fun upload(): Unit

write

abstract fun write(x: Int, y: Int, r: Double, g: Double, b: Double, a: Double): Unit
open fun write(x: Int, y: Int, color: ColorRGBa): Unit
open fun write(x: Int, y: Int, r: Float, g: Float, b: Float, a: Float): Unit

writer

abstract fun writer(): BufferWriter

Inheritors

ColorBufferShadowGL3

class ColorBufferShadowGL3 : ColorBufferShadow