This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
MetalMiner's profile picture

[Lua] Detect color

Started by MetalMiner, 28 November 2012 - 08:18 AM
MetalMiner #1
Posted 28 November 2012 - 09:18 AM
Hi there
I'm wondering if there's a possibility to detect wich color a specific pixel has…
I think not, but who knows…
Thank you
MetalMiner
Cranium #2
Posted 28 November 2012 - 09:39 AM
You mean detecting if where you select has a specific color? Not without already specifying a table defining the colors. You have to compare the area selected with an existing table, and then return the value of that table.