Model.morphdomainsetcolor#
- Model.morphdomainsetcolor(domain_entity, color)#
Sets the color of a domain to the specified color.
- Parameters:
domain_entity (Entity) – The object describing the entity.
color (int) – The color of the domain. Valid values are 1 through 64.
Example#
Assign color 45 to domain with ID 33#import hm import hm.entities as ent model = hm.Model() model.morphdomainsetcolor(domain_entity=ent.Domain(model, 33), color=45)