openrndr / org.openrndr.draw / colorBuffer

colorBuffer

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

creates a ColorBuffer

Parameters

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