# Welcome to the (Color) Matrix

DevFeed: [Welcome to the (Color) Matrix](<https://devfeed.tech/articles/welcome-to-the-color-matrix-15957.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/welcome-to-the-color-matrix>)

Author: P-Y Ricau

Published: 2015-12-09T17:10:00Z

Content type: article

Language: en

Sources: [Square Corner](<https://devfeed.tech/sources/square-corner-blog-medium.md>)

Topics: [image effects](<https://devfeed.tech/topics/image-effects.md>), [Image processing](<https://devfeed.tech/topics/image-processing.md>), [color](<https://devfeed.tech/topics/color.md>), [Picasso](<https://devfeed.tech/topics/picasso.md>)

Tags: [color](<https://devfeed.tech/tags/color.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [images](<https://devfeed.tech/tags/images.md>), [matrix](<https://devfeed.tech/tags/matrix.md>), [picasso](<https://devfeed.tech/tags/picasso.md>)

## AI overview

The article develops an Android image tinting approach with Picasso and ColorMatrix transformations. A translucent color layer lets original colors bleed through, while a grayscale image multiplied by the target RGB tint avoids that issue but leaves blacks dark and contrast strong. The author then scales and shifts grayscale values around the target color to preserve image detail with softer contrast, and adjusts the contrast scale to 1 minus the target color's relative luminance. For readable overlay text, the example uses ColorUtils to calculate minimum alpha for white text, falling back to black. The author describes this as an empirical solution and invites feedback.

## Source excerpt

Combining Picasso with color matrices to transform images.