{"size": 1011, "ext": "scrbl", "max_stars_repo_path": "draw-doc/scribblings/draw/conveniences.scrbl", "max_stars_repo_name": "Bogdanp/draw", "max_stars_repo_stars_event_min_datetime": "2015-03-24T15:04:13.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-25T03:43:21.000Z", "max_issues_repo_path": "draw-doc/scribblings/draw/conveniences.scrbl", "max_issues_repo_name": "Bogdanp/draw", "max_issues_repo_issues_event_min_datetime": "2015-01-30T20:28:55.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-02T08:43:11.000Z", "max_forks_repo_path": "draw-doc/scribblings/draw/conveniences.scrbl", "max_forks_repo_name": "Bogdanp/draw", "max_forks_repo_forks_event_min_datetime": "2015-01-29T22:12:33.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-17T09:51:49.000Z"}
{"max_stars_count": 15, "max_issues_count": 37, "max_forks_count": 21, "avg_line_length": 32.6129032258, "max_line_length": 76, "alphanum_fraction": 0.5539070227}
#lang scribble/manual

@(require "common.rkt" (for-label racket/draw/arrow))

@title{Drawing Conveniences}

This section presents higher-level APIs that provide additional conveniences
over the @racket[racket/draw] API.

@section{Arrows}
@defmodule[racket/draw/arrow]

@defproc[(draw-arrow [dc (is-a?/c dc<%>)]
                     [start-x real?]
                     [start-y real?]
                     [end-x real?]
                     [end-y real?]
                     [dx real?]
                     [dy real?]
                     [#:pen-width pen-width (or/c real? #f) #f]
                     [#:arrow-head-size arrow-head-size real? 8]
                     [#:arrow-root-radius arrow-root-radius real? 2.5])
           void?]{
Draws an arrow on @racket[dc] from (@racket[start-x], @racket[start-y]) to
(@racket[end-x], @racket[end-y]). (@racket[dx], @racket[dy]) is the top-left
location for drawing.
If @racket[pen-width] is @racket[#f], the current pen width is used.

@history[#:added "1.9"]{}
}
