Model.jpegfile#

Model.jpegfile()#

Captures the graphics area to a JPEG image in the current working directory. Each image is automatically assigned a unique name and number starting from 0 (e.g. image0.jpg, image1.jpg, etc…).

The color and background settings can be specified using the Model.graphicsfilecolor() function.

Example#

Capture the graphics area to a JPEG image#
import hm
import hm.entities as ent

model = hm.Model()

model.jpegfile()