Yet another Last™ update of margin color detection algorithm