Quick heads up. Many of you have, like me, tripped over the apparent typo in colour descriptors, using ‘grain’ instead of ‘green’.
I’ve just noticed that’s been ‘fixed’ in the current beta (reported as “25.5 (20240113.m.2464 3301ee8)” in application.build via batchPlay).
The desc does NOT include both ‘green’ and ‘grain’ for compatibility, so code that just tries to read ‘grain’ will now fail.
FWIW, this is my solution:
(desc.hasOwnProperty('green')) ? desc.green : desc.grain