Color: Difference between revisions

From StarLogo Nova Wiki
(Marked this version for translation)
(duplicate file already uploaded)
 
Line 19: Line 19:


<!--T:8-->
<!--T:8-->
[[File:color_example.gif|alt=Color example gif|thumb]]
[[File:set_my_to_example.gif|alt=Color example gif|thumb]]
[[File:color_example.png|alt=Color example code|thumb]]
[[File:color_example.png|alt=Color example code|thumb]]



Latest revision as of 18:37, 16 August 2023

Other languages:
The Color Block

Creates the specified color.

Usage

Returns a particular color or a color at random chosen from the drop down menu.

Syntax

Inputs in this block:

  1. a preloaded color from the dropdown menu

Example

Color example gif
Color example code

This is a model of bacterial growth and reproduction. Bacteria eat food in order to grow. After eating a sufficient amount, the bacteria will undergo mitosis and split into two new bacterial cells. Each lineage of bacteria has its own color that has been established during setup using the ‘color’ block.