Name
CreateTexturedBrush -- create a textured brush (V5.0)
Synopsis
[id] = CreateTexturedBrush(id, brushid, width, height[, x, y])
Function
This function will create a new brush for you and it will texture it with the brush specified by brushid. If you specify Nil in the id argument, this function will choose a vacant identifier for the new brush automatically and return it to you. The width and height arguments specify the desired dimensions for the new brush. The optional x and y parameters allow you to specify an offset into the texture brush. Texturing will then start from this offset in the brush. The default for these arguments is 0/0 which means start at the top-left corner inside the texture brush.

Inputs
id
id for the new brush or Nil for auto ID select
brushid
identifier of the brush to be used as the texture
width
desired width for the new brush
height
desired height for the new brush
x
optional: start x offset in the texture brush
y
optional: start y offset in the texture brush
Results
id
optional: identifier of the brush; will only be returned when you pass Nil as argument 1 (see above)

Show TOC