b2dMeshFaceR

Category: 2D Overlay

Syntax:

b2dMeshFaceR:Int(handle:Int, face:Int)


Parameters

Returns

Int



Summary

Red channel (0..255) of a mesh face's base colour.

View detailed documentation online



Example
Local r:Int = b2dMeshFaceR(mesh, f)
Local g:Int = b2dMeshFaceG(mesh, f)
Local b:Int = b2dMeshFaceB(mesh, f)
b2dSetColor(r, g, b)

BambooBasic © 2026 Michael Denathorn