Model.colormark#
- Model.colormark(collection, color)#
Colors the entities on a collection a specified color.
- Parameters:
collection (Collection) – The collection containing the entities to color. Valid entities are components and systems, collectors and load collectors.
color (int) – The color which the selected entities should be colored. Valid colors are 1 through 64.
Example#
Color the component “frame” red#import hm import hm.entities as ent model = hm.Model() model.colormark(collection=hm.Collection(model, ent.Component, "name=frame"), color=12)