1 Standard Line Syntax
2 Showing Drawings
3 Example

Doodle Draw

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

http://jeremykun.com/2013/05/11/bezier-curves-and-picasso/

1 Standard Line Syntax

Every program must start with the width and height of the desired image as two separated numbers.

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.

3 Example

The file "test" in the package shows how to draw and output Picasso’s Dog.