Documentation ¶
Index ¶
- func ButtCapper(offset float32, p1, p2 f32.Point) f32.Point
- func DrawArc(ops *op.Ops)
- func Inf(sign int) float32
- func IsInf(f float32, sign int) bool
- func IsNaN(sign float32) bool
- func Line2(gtx *layout.Context, width float32, ps ...f32.Point)
- func Max(x, y float32) float32
- func Min(x, y float32) float32
- func MitterJoiner(path clip.Path, offset float32, p1, p2, qp3 f32.Point)
- func OffsetPoints(l Line, width float32) (offset []f32.Point)
- func Overlay(rs ...f32.Rectangle) f32.Rectangle
- func PaintPoint(p f32.Point, radius float32, gtx *layout.Context)
- func PaintPoints(ps []f32.Point, radius float32, gtx *layout.Context)
- func RoundCapper(offset float32, p1, p2 f32.Point) f32.Point
- func RoundJoiner(path clip.Path, offset float32, p1, p2, qp3 f32.Point)
- func SquareCapper(offset float32, p1, p2 f32.Point) float32
- func SquareJoiner(path clip.Path, offset float32, p1, p2, qp3 f32.Point)
- type BBox
- type Canvas
- type Capper
- type Circle
- type Cube
- type Fill
- type Joiner
- type Line
- type LineCap
- type LineJoin
- type Plus
- type Quad
- type Rectangle
- type Shape
- type Stroke
- type StrokeStyle
- type StrokeType
- type Triangle
- type Vector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Canvas ¶
type Line ¶
func (Line) Stroke ¶
An algorithm for polylines outline construction http://old.cescg.org/CESCG99/SKrivograd/
https://www.codeproject.com/Articles/226569/Drawing-polylines-by-tessellation
A Realistic 2D Drawing System https://keithp.com/~keithp/talks/cairo2003.pdf
https://stackoverflow.com/questions/5641769/how-to-draw-an-outline-around-any-line
Drawing Lines is Hard https://mattdesl.svbtle.com/drawing-lines-is-hard
type StrokeType ¶
type StrokeType int
Source Files ¶
Click to show internal directories.
Click to hide internal directories.