NetLogo Web

October 27th, 2017 - v2.2.1

Newly Supported NetLogo Features

  • The diffuse4 primitive is now supported.
  • Vertical sliders are now presented correctly.

Improvements and Bug Fixes

  • Fixed a bug where turtles moving back would not draw pen lines.
  • Fixed a bug with the display of histogram plots when using temporary plot pens.
  • Fixed a bug that would incorrectly set tied turtle positions in rare circumstances.

October 5th, 2017 - v2.2.0

Newly Supported NetLogo Language Primitives

  • read-from-string
  • export-view
  • run and runresult now work on string values. Example: run "set sum 10 + 100"

Improvements and Bug Fixes

  • Models that are saved with code tab errors can now be loaded so the errors can be addressed.
  • Running a reporter in the command center automatically adds show for usability.
  • Fix for a couple issues when loading a model from an .nlogo file, including ghosting agents at full tick speed.
  • Plot title sizes were reduced to give more room for the plots.
  • clear-all clears output areas, too.
  • Models library updated to match the 6.0.2 NetLogo desktop release.

July 28th, 2017 - v2.1.0

Now-Supported Language Primitives

  • insert-item
  • range
  • wait (This implementation is for basic compatibility. We recommend NetLogo Web models avoid the use of this primitive.)

Selected BugFixes / Improvements

  • Numerous major optimizations and performance improvements.
  • Improve anonymous reporter and command display with show.
  • Allow extract-hsb to take RGB lists.
  • Make is-breed? work with links.

Models Library

NetLogo Web is now using a preliminary version of the Models Library that will come with the soon-to-be-released NetLogo 6.0.2, which means that many models have been added or modified. See the "Models" section here for more information.

February 5th, 2017

Now-Supported Language Primitives

  • clear-globals
  • downhill
  • downhill4
  • layout-circle
  • layout-radial
  • layout-tutte
  • random-gamma
  • uphill
  • uphill4

NetLogo 6 Parity

Much has been done to keep step with the desktop version of NetLogo as it transitioned from version 5.3.1 to version 6.0.0. The two most significant changes have been making link primitives more consistent with one another in their behavior, and the replacement of tasks with anonymous procedures. For more information about these items, please see the "Tasks replaced by Anonymous Procedures" and "Link reporters overhauled to be more consistent and flexible" subsections of the NetLogo 6 transition guide.

Models Library

NetLogo Web is now using the version of the Models Library that comes with NetLogo 6, which means that many models have been added or modified. See the "Models" section here for more information.

October 11th, 2016

Now-Supported Language Primitives

  • random-gamma

September 13th, 2016

Now-Supported Language Primitives

  • export-output
  • user-input

August 9th, 2016

Now-Supported Language Primitives

  • link-shapes

July 26th, 2016

Miscellaneous

NetLogo Web files are now distributed in such a way that clearing your browser's cache should never be necessary for obtaining the latest versions of the files.

June 1st, 2016

Now-Supported Language Primitives

  • user-yes-or-no?

April 8th, 2016

Widget Enhancement

Input widgets can now be used to select colors.

February 25th, 2016

Widget Enhancement

Buttons now indicate if they are "forever" buttons. Also, buttons now indicate if they run in an agent context (T (turtles), P (patches), or L (links)).

February 10th, 2016

Now-Supported Language Primitives

  • at-points
  • sort-by
  • sort-on

December 14th, 2015

Widget Error Reporting

Widgets now support displaying red label text when they contain an error.

This does not currently apply to plot widgets, which will still display pop-ups about errors on model load, for the time being.

November 9th, 2015

Newly-Implemented Language Primitives

First and foremost, this update brings with it the implementation of many NetLogo primitives, substantially increasing the percentage of the language supported by NetLogo Web.

The newly-supported primitives are as follows:

  • approximate-rgb
  • approximate-hsb
  • breed-at
  • clear-drawing
  • date-and-time
  • extract-hsb
  • home
  • hsb
  • in-cone
  • is-boolean?
  • max-n-of
  • min-n-of
  • modes
  • netlogo-web?
  • patch-at-heading-and-distance
  • patch-size
  • pen-erase
  • random-exponential
  • random-normal
  • random-poisson
  • random-pxcor
  • random-pycor
  • rgb
  • set-patch-size
  • shapes
  • shuffle
  • stamp-erase
  • user-message
  • with-local-randomness
  • with-min
  • with-max
  • wrap-color

Updated Models Library

This change adds the Traffic Basic Adaptive Individuals model and updates dozens of other models were updated with small tweaks and code style improvements.

The above changes, combined with all of the new primitives added, has allowed the following models to now be openable in NetLogo Web:

  • Autumn
  • Bacteria Food Hunt
  • Bacteria Hunt Speeds
  • BeeSmart Hive Finding
  • Bug Hunt Coevolution
  • Bug Hunt Speeds
  • Connected Chemistry Gas Combustion
  • Connected Chemistry Rusting Reaction
  • Connected Chemistry Solid Combustion
  • Current in a Wire
  • Dice Stalagmite
  • Disease Solo
  • DNA Replication Fork
  • Echo
  • El Farol Network Congestion
  • epiDEM Basic
  • epiDEM Travel and Control
  • Equidistant Probability
  • Fireworks
  • Flocking - Alternative Visualizations
  • Flocking Vee Formations
  • GasLab Single Collision
  • Geometron Top-Down
  • HSB and RGB Example
  • K-Means Clustering
  • Lightning
  • Lunar Lander
  • Many Regions Example
  • Muscle Development
  • Osmotic Pressure
  • Particle Swarm Optimization
  • Particle System Flame
  • Particle System Fountain
  • Particle System Waterfall
  • Plant Speciation
  • Prob Graphs Basic
  • Random Basic Advanced
  • Reactor Top Down
  • Red Queen
  • Sampler Solo
  • Shuffle Board
  • Simple Economy.nlogo
  • Stochastic Patchwork
  • Sunflower Biomorphs
  • Traffic Basic Adaptive Individuals
  • Turtles Circling
  • Urban Suite - Path Dependence
  • Urban Suite - Recycling
  • Vision Cone Example
  • Voronoi

Note: While most of these work fine, the fact that a model is openable does not imply that we think the model is running well. Some of these models are still a bit slow or buggy, and we plan to fix that in future updates.

New Random Number Generator

Previously, NetLogo Web used the standard JavaScript random number generator. With this update, NetLogo Web now gets its random numbers from a direct port of the random number generator used in desktop NetLogo. Thanks to this, any seed passed to random-seed leads to exactly the same model run in NetLogo Web as it does in desktop NetLogo.