> For the complete documentation index, see [llms.txt](https://docs.streamavatars.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.streamavatars.com/lua-scripting-api/api-reference-and-tips/classes/avatar/getcolors.md).

# getColors

```lua
return function()
    local avatar = getAvatar('block_man');
    if avatar == nil then
        log('the avatar was not found');
        return;
    end
    
    local colors = avatar.getColors(); 
    --returns a list of color palettes that's attached to the avatar
    
    local str = '';
    for key, value in pairs(colors) do
        str = str + value + ', ';
    end
    log(avatar.name .. ' has these colors palettes available:');
    log(str);
end
```
