Skip to content

GetImagePixel

Name Mandatory Description Default Type
⬅️ Input The position of the pixel to obtain the colour value of, represented as an int2 vector. The first element of the vector represents the x coordinate, and the second element represents the y coordinate. Int2
Output ➡️ The colour(RGBA) values of the pixel at the specified position as a int4 or float4 vector. The first element of the vector represents the red value, the second element represents the green value, the third element represents the blue value, and the fourth element represents the alpha value. Int4Float4
Position No The position of the pixel to retrieve none ImageVar(Image)
AsInteger No Read the pixel as an integer false Bool
Default No When specified, out of bounds or otherwise failed reads will outputs this value instead of failing none NoneFloat4Int4

This shard analyzes the image(specified in the Image parameter) and outputs the colour value(RGBA) of the pixel at the specified position.