Color/en: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 1: Line 1:
<languages/>
<languages/>
<section begin="image"/>[[File:color.png|alt=The Color Block|thumb]]<section end="image"/><p id="tooltip">Creates the specified color.</p>
==Usage==
Returns a particular color or a color at random chosen from the drop down menu.
==Syntax==
Inputs in this block:
#a preloaded color from the dropdown menu
==Example==
[[File:color_example.gif|alt=Color example gif|thumb]]
[[File:color_example.png|alt=Color example code|thumb]]
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.


[[Category:Traits]]
[[Category:Traits]]
[[Category:Code Block]]
[[Category:Code Block]]
<p id="tooltip">Returns a particular color or a color at random chosen from the drop down menu</p>

Revision as of 20:14, 14 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 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.