Keyword: javascript

Showing 41 to 47 of 47«123
Rock, Paper, Scissors

Rock, Paper, Scissors

Fri May 02 2025 15:06:07 GMT+0100 (British Summer Time)

A very simple example of Cellular Automata showing Rock, Paper, Scissors interactions. Written in Javascript and using a Canvas for rendering.

Rainbow Automata

Rainbow Automata

Fri May 02 2025 15:06:07 GMT+0100 (British Summer Time)

Extending the Rock, Paper, Scissors scenario to include 7 circularly predatorial cell types. Helps to demonstrate the failings of over-simplified systems.

Random Distribution in Javascript

Random Distribution in Javascript

Fri May 02 2025 15:06:07 GMT+0100 (British Summer Time)

An example to help visualize random distribution in Javascript using the Math.random() method and displayed on a canvas.

Mouth and Body Automata

Mouth and Body Automata

Fri May 02 2025 15:06:07 GMT+0100 (British Summer Time)

Another simple cellular automata setup, this time showing interactions between cells with random mouth and body colours to represent type and prey type.

Predator, Prey interactions

Predator, Prey interactions

Fri May 02 2025 15:06:07 GMT+0100 (British Summer Time)

A classical Predator, Prey implementation to look at interactions between cells.

Plotting Regular Polygons

Plotting Regular Polygons

Fri May 02 2025 15:06:07 GMT+0100 (British Summer Time)

Programatically plotting regular polygons on a canvas or other drawing surface is surprisingly simple. Learn how to write a short function to generate Polygons in this tutorial.

Plotting Regular Stars

Plotting Regular Stars

Fri May 02 2025 15:06:07 GMT+0100 (British Summer Time)

Plotting regular stars is just as simple as plotting regular polygons, and in this tutorial we'll create a function to do so.