#lang scribble/manual

@title{Doodle Draw}

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

@link{http://jeremykun.com/2013/05/11/bezier-curves-and-picasso/}


@section{Standard Line Syntax}

@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.
}