Model.autocolor#

Model.autocolor(entity_type)#

Automatically colors any collectors that are currently set to gray (colors 10-18).

Parameters:

entity_type (EntityFullType) – The type of entity collector to be colored. Valid values are components, loadcols, systemcols, vectorcols entities.

Examples#

Automatically coloring all of the components that are gray#
import hm
import hm.entities as ent

model = hm.Model()

model.autocolor(entity_type=ent.Component)