What's going on
An LED only lights once the voltage across it reaches its forward voltage, about 2 V for red and about 3 V for blue and white. Above that, its current rises very steeply for a tiny rise in voltage, so without a resistor it would draw far too much current. The resistor takes up the rest of the supply voltage and sets the current.
The quick estimate is I = (Vs − Vf) ÷ R. Compare it with the simulated current. Near the forward voltage the two differ, because the LED's voltage isn't fixed: it falls a little at low current. At higher supply voltages the resistor dominates and the estimate becomes very good.
How this simulation works
The LED is modelled with the Shockley diode equation plus a small series resistance, and the circuit is solved exactly for the current. Each colour's model drops its typical forward voltage at 20 mA: 2.0 V red, 2.1 V yellow, and 3.2 V for true green, blue and white. Real LEDs vary by a few tenths of a volt between makers and batches, and the forward voltage falls slightly as they warm up, so use the LED's datasheet for a real design. Brightness is shown as roughly proportional to current, which is a fair approximation for indicator LEDs.
The warnings use typical ratings for small 5 mm indicator LEDs: 20 mA continuous, and an absolute maximum around 30 mA. Power LEDs are rated very differently. To pick a resistor for a real circuit, use the LED resistor calculator, and see how LEDs work for the full story.