Is it possible to draw on canvas using script? Eg. drawing line/circle/rect providing coordinates as parameters?
The only way I found out to set a mark on the canvas was to create a selection and then stroke it. Even that requires a manual intervention of the stroke dialog box.