COLOR LIMB This command will color the specified limb of a 3D object using an RGB colour value.
Syntax
    COLOR LIMB Object Number, Limb Number, Color Value
Parameters
    Object Number
Integer The object number
    Limb Number
Integer The limb number
    Color Value
Dword This command will color the specified limb of a 3D object using an RGB colour value
Returns
This command does not return a value.
Description
The parameters must be integer values. The RGB color value can be generated by using the RGB command. Some objects loaded from a model file may not be colored if they do not already contain diffuse color data.
Example Code
    sync on : sync rate 60 : hide mouse:cls 0

    ObjectNumber=1

    LimbNumber=7

    load object "model.x",ObjectNumber

    load image "iron.jpg",1

    while mouseclick()=0

    color limb ObjectNumber,LimbNumber,rgb(0,255,0)

    sync

    endwhile

    delete object ObjectNumber

    delete image 1

    end
See also
BASIC3D Commands Menu Index