Skip to main content

Color

This block's function is to capture a specific pixel on the screen, allowing you to compare the similarity between the snapshot color and a target (mutation) color

Terminology

This module enables color detection, which can be useful for cases where, for example, if a specific coordinate's pixel color matches, you perform action A; otherwise, you perform action B. The comparison method is highly efficient, making it valuable in situations where pixel changes happen quickly and cannot be detected by searching for an image or text.

Picking a Color

Before you can compare the color pixel, you can pick a color using this block, hold down the block and you will see Pick Color options. You will enter color picker window, move your finger around to select certain pixel

Video Example

Comparing the color

After you have successfully pick the color, you can compare and get the comparison value that ranged from 0 to 1. If the value is close to 1 then the both color is highly similar, and vice-versa.

Video Example

Comparing using real time pixel color from your screen

The question comes in mind. How to get the realtime pixel color so we don't have to select it manually ? Well you can actually do that using this block

This block will return the color pixel of the selected coordinates, in this example X: 500, Y: 500. It will check the color pixel in your device. After that you can use this block to compare with the color you've picked before, for example red color with the color from X: 500, Y: 500 in your screen.

In the end you will get the comparison score in real-time enabling you to do certain condition, if color pixel in your screen changes