This repository has been archived on 2023-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
tomo-old/artist/shapes/doc.go

12 lines
574 B
Go
Raw Normal View History

2023-02-23 18:55:19 -07:00
// Package shapes provides some basic shape drawing routines.
//
// A word about using patterns with shape routines:
2023-02-23 18:55:19 -07:00
//
// Most drawing routines have a version that samples from other canvases, and a
// version that samples from a solid color. None of these routines can use
// patterns directly, but it is entirely possible to have a pattern draw to an
// off-screen canvas and then draw a shape based on that canvas. As a little
// bonus, you can save the canvas for later so you don't have to render the
// pattern again when you need to redraw the shape.
package shapes