github.com/cybriq/giocore@v0.0.7-0.20210703034601-cfb9cb5f3900/op/clip/doc.go (about) 1 // SPDX-License-Identifier: Unlicense OR MIT 2 3 /* 4 Package clip provides operations for clipping paint operations. 5 Drawing outside the current clip area is ignored. 6 7 The current clip is initially the infinite set. An Op sets the clip 8 to the intersection of the current clip and the clip area it 9 represents. If you need to reset the current clip to its value 10 before applying an Op, use op.StackOp. 11 12 General clipping areas are constructed with Path. Simpler special 13 cases such as rectangular clip areas also exist as convenient 14 constructors. 15 */ 16 package clip