#lang scribble/doc @(require scribble/manual scribble/eval scribble/basic scribble/bnf) @title{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/ @section{Standard Line Syntax} Every program must start with the width and height of the desired image as two separated numbers. @defform/none[(x1 y1 x2 y2 x3 y3 x4 y4)]{ adds the bezier curve starting from (@racket[x1] @racket[y1]) and passing through control points (@racket[x2] @racket[y2]) (@racket[x3] @racket[y3]) (@racket[x4] @racket[y4]) } @defform/none[(x1 y1 x2 y2)]{ adds a line from (@racket[x1] @racket[y1]) to (@racket[x2] @racket[y2]) } @section{Showing Drawings} @defproc[(save [file-path (string?)] [file-type (symbol?)]) void]{ saves the image resulting from the paths previously declared into @racket[file-path], using @racket[file-type] as the type of the image (png, jpg, etc). } @defproc[(show [label (string?)]) void]{ creates a new window showing the image resulting from the paths previously declared. } @section{Example} The file "test" in the package shows how to draw and output Picasso's Dog.