You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varDEFAULT_OPTIONS={fill: 'white',stroke: 'black',lineWidth: 1,// width of the background border
Using colors like that instantiates extra objects and takes more work, it seems it would be better to use Color.WHITE and Color.BLACK. I'm seeing many occurrences of 'white' and 'black' throughout the sim. @jonathanolson can you confirm that this would be a desirable change?
The text was updated successfully, but these errors were encountered:
It may be a minor memory/performance win to directly reference color objects like that. Probably not significant unless there are a large number of objects of a specific type.
For instance, Panel.js has:
Using colors like that instantiates extra objects and takes more work, it seems it would be better to use Color.WHITE and Color.BLACK. I'm seeing many occurrences of 'white' and 'black' throughout the sim. @jonathanolson can you confirm that this would be a desirable change?
The text was updated successfully, but these errors were encountered: