We have a report about a trinket not working and I wonder if the issue stems from what is returned from color(). Looks like a <processing.color object> is returned in the skulpt version but an integer is returned using javascript. That integer can then be used in a comparison to a call to get().
We have a report about a trinket not working and I wonder if the issue stems from what is returned from
color()
. Looks like a<processing.color object>
is returned in the skulpt version but an integer is returned using javascript. That integer can then be used in a comparison to a call toget()
.Here's a trinket not working as expected or hoped for: https://trinket.io/python/639290008a
Here's a javascript version that does work: http://sketchpad.cc/sp/pad/view/tzeECLHyPa/rev.125