Turtle, Observer, Patch

count-color-range mincolor maxcolor

Parameters:
mincolor Number low end of range of color of turtles to be counted
maxcolor Number high end of range of color of turtles to be counted

Description:
Returns the number of turtles that have colors between mincolor and maxcolor, inclusive.

Examples:
count-color-range 13.5 16.5 returns the number of turtles who are red (15) or within 1.5 shades of red. This command is useful if you have scaled your turtle's colors to shades of a particular color using scale-color.

Related Commands:
count-color count-pc count-pc-range