def write_radiator(canvas, transf=I): if canvas is not None: symbol = Square(I.scale(2.0, 3.0).transform(transf)) symbol.write(canvas) return transf.r_move(-1.0, 0.0), transf.r_move(1.0, 0.0)
def write_radiator(canvas, transf=I): symbol = Square(I.scale(3.0, 4.0).transform(transf)) symbol.write(canvas) return transf.move(transf.transform_vector((4.0, 0.0)))
def write_heater(canvas, transf=I): if canvas is not None: t = I.scale(2.0, 3.0).transform(transf) symbol = Square(t) symbol.write(canvas) return transf.r_move(-1.0, 0.0), transf.r_move(1.0, 0.0)
def write_heater(canvas, transf=I): t = I.scale(3.0, 4.0).transform(transf) symbol = Square(t) symbol.write(canvas) return transf.move(transf.transform_vector((3.0, 0.0)))