CRESS-Surrey / eXtraWidgets

An extension for creating additional interface tabs in the NetLogo GUI and putting custom widgets on them.
MIT License
13 stars 4 forks source link

Colors stored as lists make comparisons difficult #103

Closed nicolaspayette closed 9 years ago

nicolaspayette commented 10 years ago
xw:create-slider "s" [ xw:set-background red ]
xw:ask xw:sliders [ show xw:background = red ] ; false
xw:ask xw:sliders [ show xw:background = [255 0 0] ] ; true

NetLogo itself suffers from the same problem when colors are stored as lists, but that doesn't happen too often. Currently, in the extension, all colors are stored as lists, so that makes it a bit more annoying.

Maybe there is an easy way around this, but in any case, it should at least be documented somewhere.