Multicolor Blob Codes

it looks like I’ll have to track blobs that contain multiple colors for my project. I was looking at the example code, and could not figure out why the blob codes are the numbers that they are.
If I were to pass 4 thresholds, what blob.code() numbers would the combinations be assigned?

Please read the docs: