Model.morphdomainsupdatecolor#

Model.morphdomainsupdatecolor(collection, color)#

Updates the color of selected domains to the specified color.

Parameters:
  • collection (Collection) – The collection containing the domain entities to update the color.

  • color (int) – The color of the domain. Valid values are 1 through 64.

Example#

Change the color of a number of domains to be violet#
import hm
import hm.entities as ent

model = hm.Model()

model.morphdomainsupdatecolor(
    collection=hm.Collection(
        model, ent.Domain, [6, 15, 154, 153, 68, 143, 211, 208, 185, 184, 167, 157]
    ),
    color=37,
)