method of getting RGB/hex colour data from pixel in image?
i’ve been working on a relatively simple shortcut that needs to find when a colour changes, and i can’t manage to get any sort of colour data from an image. is there a way of doing this (without uploading an image online, as this will be repeated)?
Posted Dec 27, 2019, 7:13 PM UTC
It’s (mostly) working! It’s not perfect, but this is the best I could do. I can’t figure out how to get the image to load in JavaScript in the Shortcuts parser, so it uses safari. Output is RBGW.
E: doesn’t use internet or load anything from the web. You can turn WiFi and cellular data off and it will still work.
This seems to be what I need for my project! I need to determine the level of brightness (just greyscale, no color) of a 1x1 pixel “image” but I cannot seem to extract the provided RGB values from the final url to use in my own shortcut. Any suggestions?