Today's problem breaks out of the normal mode and into graphics mode. Your goal is to create a function that takes in an image and returns the color of the top left most pixel. For instance if you used this image your function should return #0000FE.
Today's problem breaks out of the normal mode and into graphics mode. Your goal is to create a function that takes in an image and returns the color of the top left most pixel. For instance if you used this image your function should return #0000FE.
Permalink: http://problemotd.com/problem/pixel-color/
Content curated by @MaxBurstein
Comments:
Daniel - 10 years, 6 months ago
C#. System.Drawing namespace makes this incredibly easy.
reply permalink
Daniel - 10 years, 6 months ago
To be lazier, you could replace
with
reply permalink
Nick Krichevsky - 10 years, 6 months ago
Python soloution with Pillow
reply permalink