1 Standard Line Syntax
2 Showing Drawings
5.3.4

Doodle Draw

This package provides a #lang language to draw curves and lines taking as inspiration this link:

1 Standard Line Syntax

syntax

(x1 y1 x2 y2 x3 y3 x4 y4)

adds the bezier curve starting from (x1 y1) and passing through control points (x2 y2) (x3 y3) (x4 y4)

syntax

(x1 y1 x2 y2)

adds a line from (x1 y1) to (x2 y2)

2 Showing Drawings

procedure

(save file-path file-type)  void

  file-path : (string?)
  file-type : (symbol?)
saves the image resulting from the paths previously declared into file-path, using file-type as the type of the image (png, jpg, etc).

procedure

(show label)  void

  label : (string?)
creates a new window showing the image resulting from the paths previously declared.