openrndr / org.openrndr.draw / colorBuffer


fun colorBuffer(width: Int, height: Int, contentScale: Double = 1.0, format: ColorFormat = ColorFormat.RGBa, type: ColorType = ColorType.UINT8, multisample: BufferMultisample = BufferMultisample.Disabled, levels: Int = 1, session: Session? = ColorBuffer (source)

creates a ColorBuffer


width - the width in device units

height - the height in device units

contentScale - content scale used for denoting hi-dpi content

format - the color format

type - the color type

format - the color format

levels - the number of mip-map levels

session - the Session that should track this color buffer