I created a custom block that has the color selection square as an input and reported the value that it returned:
When I ran the block I got a value like this:
Which is unintuitive to me, because I would have assumed that the reported value would be a list that contained the rgba values, similar to how the (pen [RGBA]) block works, however, to create my project anyway I decided to try to split apart the reported text to get the rgba values, but then I encountered a different problem:
For some reason the reported text is not actually text, and is instead the undefined type, which makes it impossible to split apart to get the individual values.
I would have expected that the value had instead reported a rgba list, and not a undefined type object. Is there a way to get those values that I am missing, or some other way to interact with the undefined type?
Edit:
Here is a project link that contains the two blocks shown above:
https://snap.berkeley.edu/embed?projectname=BR%20Odd%20value%20reported&username=schoolcs002&showTitle=true&showAuthor=true&editButton=true&pauseButton=true