pink algorithm — by @scarclem / Cosmos