b3dBrushColor

Sets brush base color (RGB 0-255), preserves alpha channel. Takes brushHandle (brush handle from b3dCreateBrush), r, g, b (red, green, blue components, 0-255). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

brushHandle Int
r Int
g Int
b Int

Returns

Void

Quick Summary

Sets brush base color (RGB 0-255), preserves alpha channel. Takes brushHandle (brush handle from b3dCreateBrush), r, g, b (red, green, blue components, 0-255). Returns nothing.

Technical Exegesis...

Sets brush base color (RGB 0-255), preserves alpha channel. Takes brushHandle (brush handle from b3dCreateBrush), r, g, b (red, green, blue components, 0-255). Returns nothing. Validates brush handle, converts RGB from 0-255 to 0.0-1.0 float range, sets brush baseColorFactor.xyz (RGB), preserves baseColorFactor.w (alpha). Base color multiplied with texture color (if texture set) during rendering.

This function configures brush tint color for material template.

Example

Example.bam
; No example implemented yet