Skip to main content

sampler2d_paint

Functions

blendFunctionNormal(source, destination, result)
sampler2d_paint(destination, source, sourceX, sourceY, destinationX, destinationY, width, height, [blendMode])

Assumes both samplers are RGBA uint8 with values 0-255

blendFunctionNormal(source, destination, result)

Kind: global function

ParamType
sourceArray.<number>
destinationArray.<number>
resultArray

sampler2d_paint(destination, source, sourceX, sourceY, destinationX, destinationY, width, height, [blendMode])

Assumes both samplers are RGBA uint8 with values 0-255

Kind: global function

ParamType
destinationSampler2D
sourceSampler2D
sourceXnumber
sourceYnumber
destinationXnumber
destinationYnumber
widthnumber
heightnumber
[blendMode]BlendingType