MCPcopy Create free account
hub / github.com/bighuang624/Algorithms-notes / setCanvasSize

Method setCanvasSize

code/algs4/Draw.java:336–343  ·  view source on GitHub ↗

Sets the canvas (drawing area) to be width -by- height pixels. This also erases the current drawing and resets the coordinate system, pen radius, pen color, and font back to their default values. Ordinarly, this method is called once, at the very beginning of a program. @param canv

(int canvasWidth, int canvasHeight)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainMethod · 0.95

Calls 1

initMethod · 0.95

Tested by

no test coverage detected