MCPcopy Create free account

hub / github.com/tdewolff/canvas / functions

Functions1,447 in github.com/tdewolff/canvas

↓ 1 callersMethodrenderInline
(src []byte, n ast.Node, rt *RichText, s mdState)
markdown.go:29
↓ 1 callersMethodrenderOpacityMask
(img image.Image)
renderers/svg/svg.go:507
↓ 1 callersMethodrenderTo
(r Renderer, m Matrix, glyphs []text.Glyph, ppem uint16)
font.go:779
↓ 1 callersMethodreturnNode
(n *SweepNode)
path_intersection.go:728
↓ 1 callersFunctionrhombitrihexagonalTiling
(ctx *canvas.Context, clip *canvas.Path)
resources/docs/tiling/main.go:87
↓ 1 callersFunctionrun
(window *app.Window)
examples/gio/main.go:25
↓ 1 callersMethodsetDashes
(offset float64, dashes []float64)
renderers/ps/ps.go:147
↓ 1 callersMethodsetDashes
(offset float64, dashes []float64)
renderers/tex/tex.go:169
↓ 1 callersMethodsetLineCap
(capper canvas.Capper)
renderers/ps/ps.go:116
↓ 1 callersMethodsetLineJoin
(joiner canvas.Joiner)
renderers/ps/ps.go:131
↓ 1 callersMethodsetLineWidth
(width float64)
renderers/ps/ps.go:102
↓ 1 callersMethodsetMiterLimit
(limit float64)
renderers/ps/ps.go:109
↓ 1 callersMethodsetMiterLimit
(limit float64)
renderers/tex/tex.go:131
↓ 1 callersMethodsetStroke
(paint canvas.Paint)
renderers/tex/tex.go:110
↓ 1 callersMethodsetStrokeCap
(capper canvas.Capper)
renderers/tex/tex.go:138
↓ 1 callersMethodsetStrokeJoin
(joiner canvas.Joiner)
renderers/tex/tex.go:153
↓ 1 callersMethodsetStrokeWidth
(width float64)
renderers/tex/tex.go:124
↓ 1 callersFunctionsortObjectOffsets
(objects map[pdfRef]int)
cmd/pdftext/writer.go:23
↓ 1 callersFunctionsplitImageAlphaChannel
(img image.Image)
renderers/svg/svg.go:530
↓ 1 callersFunctionstandardFontName
(font *canvas.Font)
renderers/pdf/writer.go:289
↓ 1 callersFunctiontoNRGBA
(col color.Color)
renderers/ps/util.go:17
↓ 1 callersFunctiontoP26_6
(p Point)
util.go:210
↓ 1 callersMethodup
func (q *SweepEvents) Fix(i int) { if !q.down(i, len(*q)) { q.up(i) } } from container/heap
path_intersection.go:473
↓ 1 callersFunctionusrShareFontsNotoNotoserifdevanagariRegularTtfBytes
()
examples/html-canvas/files.go:124
↓ 1 callersFunctionusrShareFontsTtfDejavusansTtfBytes
()
examples/html-canvas/files.go:104
↓ 1 callersFunctionusrShareFontsTtfDejavuserifTtfBytes
()
examples/html-canvas/files.go:84
↓ 1 callersMethodwriteBytes
(b []byte)
renderers/pdf/writer.go:131
↓ 1 callersMethodwriteFont
(ref pdfRef, font *canvas.Font, vertical bool)
renderers/pdf/writer.go:366
↓ 1 callersMethodwriteFontStyle
(face, faceMain *canvas.FontFace, rtl bool, fill string)
renderers/svg/svg.go:293
↓ 1 callersMethodwriteOutlines
()
renderers/pdf/writer.go:609
↓ 1 callersFunctionxvalues
()
examples/go-chart/main.go:104
↓ 1 callersFunctionyvalues
()
examples/go-chart/main.go:115
FunctionAVIF
AVIF returns a AVIF writer that uses libaom and accepts the following options: canvas.Resolution, canvas.Colorspace, github.com/Kagami/go-avif.*Option
renderers/renderers_noformats.go:17
MethodAdd
(face *FontFace, text string)
text.go:578
MethodAddAnchor
AddAnchor adds an anchor that can be referenced by a link (see AddLink). The rectangle is the area to be referenced. If the width and height are zero
renderers/pdf/pdf.go:78
MethodAddAnchor
AddAnchor adds an anchor to which a link can point.
renderers/pdf/writer.go:924
MethodAddCanvas
(c *Canvas, valign VerticalAlign)
text.go:584
MethodAddClass
AddClass adds a class to the class list.
renderers/svg/svg.go:138
MethodAddImage
(img image.Image, res Resolution, valign VerticalAlign)
text.go:596
MethodAddLaTeX
(s string)
text.go:602
MethodAddLink
AddLink adds a link at the given rectangle. If the URI starts with # this will link to an anchor (set with AddAnchor).
renderers/pdf/pdf.go:83
MethodAddLink
AddLink adds a local or external link. Local links are # + anchor name (see AddAnchor).
renderers/pdf/writer.go:929
MethodAddOptions
(options ...renderer.Option)
markdown.go:197
MethodAddOutline
AddOutline adds an outline element at the given y position. The top-level element must have level zero. If any level is missing, then higher level ele
renderers/pdf/pdf.go:89
MethodAddOutline
AddOutline adds an outline element.
renderers/pdf/writer.go:950
MethodAddPath
(path *Path, col color.RGBA, valign VerticalAlign)
text.go:590
MethodAnd
And is the same as Path.And, but faster if paths are already split. Each resulting path is a single filling path followed by its holes as subpaths.
path_intersection.go:153
MethodAppliesTo
(elem svgElem)
svg.go:1223
MethodAppliesTo
(elem svgElem)
svg.go:1265
MethodAppliesTo
(elems []svgElem)
svg.go:1299
FunctionArc
Arc returns a circular arc with radius r and theta0 and theta1 the angles in degrees of the ellipse (before rot is applies) between which the arc will
shapes.go:19
MethodArc
Arc returns the arguments for arcs (rx,ry,rot,large,sweep).
path.go:1993
MethodArc
Arc adds an elliptical arc with radii rx and ry, with rot the counter clockwise rotation in degrees, and theta0 and theta1 the angles in degrees of th
canvas.go:526
MethodArcTo
ArcTo adds an arc with radii rx and ry, with rot the counter clockwise rotation with respect to the coordinate system in degrees, large and sweep bool
canvas.go:521
MethodArcTo
ArcTo draws an arc with a given center (cx,cy) a given set of radii (rx,ry), a startAngle and delta (in radians).
renderers/gochart.go:116
FunctionAssetNames
AssetNames returns the names of the assets.
examples/html-canvas/files.go:204
MethodAt
At returns the color at position t ∈ [0,1].
colors.go:114
MethodAt
At returns the color at position (x,y).
colors.go:196
MethodAt
At returns the color at position (x,y).
colors.go:242
MethodAt
(x, y int)
image/image.go:129
MethodAt
(x, y int)
image/image.go:204
MethodAt
(x, y int)
image/image.go:299
MethodAt
(x, y int)
image/image.go:412
MethodAt
(x, y int)
image/image.go:512
MethodAt
(x, y int)
renderers/rasterizer/util.go:54
FunctionBenchmarkEqualAbs
(b *testing.B)
util_test.go:389
FunctionBenchmarkEqualIfElse
(b *testing.B)
util_test.go:404
FunctionBenchmarkScanner
(b *testing.B)
path_scanner_test.go:5
FunctionBenchmarkToRasterizer
(b *testing.B)
path_test.go:959
FunctionBenchmarkToScanx
(b *testing.B)
path_test.go:994
MethodBounds
()
image/image.go:122
MethodBounds
()
image/image.go:297
MethodBounds
()
image/image.go:410
MethodBounds
()
image/image.go:510
MethodBytes
()
cmd/pdftext/encoding.go:120
MethodBytes
()
cmd/pdftext/encoding.go:196
FunctionCacheSystemFonts
CacheSystemFonts will write and load the list of system fonts to the given filename. It scans the given directories for fonts, leave nil to use github
font.go:191
MethodCap
Cap adds a cap to path p of width 2*halfWidth, at a pivot point and initial normal direction of n0.
path_stroke.go:28
MethodCap
Cap adds a cap to path p of width 2*halfWidth, at a pivot point and initial normal direction of n0.
path_stroke.go:44
MethodCap
Cap adds a cap to path p of width 2*halfWidth, at a pivot point and initial normal direction of n0.
path_stroke.go:60
MethodCenter
Center returns the center point.
util.go:419
MethodCentroid
Centroid returns the center point of the polygon.
polyline.go:119
MethodCircle
Circle draws a circle at the given coords with a given radius.
renderers/gochart.go:154
MethodClearTextRotation
ClearTextRotation clears rotation.
renderers/gochart.go:216
MethodClip
Clip clips the path against the given rectangle. This is O(n), which is faster than using Path.And(rect.ToPath()) and does not alter the path structur
path_simplify.go:400
MethodClose
Close adds a new point equal to the first, closing the polyline.
polyline.go:40
MethodClose
Close finalizes a shape as drawn by LineTo.
renderers/gochart.go:133
MethodClose
Close finished and closes the TeX file.
renderers/tex/tex.go:39
MethodClosestPoint
ClosestPoint returns a point in the rectangle closest to the given point.
util.go:488
MethodColorModel
()
image/image.go:118
MethodColorModel
()
image/image.go:200
MethodColorModel
()
image/image.go:295
MethodColorModel
()
image/image.go:408
MethodColorModel
()
image/image.go:508
MethodCompareH
(b *SweepPoint)
path_intersection.go:1011
MethodContains
Contains returns true if the interior of p contains the interior of q. Equal shapes contain each other. If p contains q, then q is within p. This test
path_intersection.go:257
MethodContains
Contains returns true if at least one point of the second shape lies in the first, and no points of the second lie in the exterior of the first.
path_intersection.go:2470
MethodContainsLine
(a, b Point)
util.go:549
MethodContainsPoint
Contains returns whether the point (x,y) is contained/filled by the path. This depends on the FillRule. It uses a ray from (x,y) toward (∞,y) and coun
path.go:949
MethodCopyTo
CopyTo returns a copy of p, using the memory of path q.
path.go:276
← previousnext →801–900 of 1,447, ranked by callers