Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tdewolff/canvas
/ functions
Functions
1,447 in github.com/tdewolff/canvas
⨍
Functions
1,447
◇
Types & classes
214
↓ 1 callers
Method
renderInline
(src []byte, n ast.Node, rt *RichText, s mdState)
markdown.go:29
↓ 1 callers
Method
renderOpacityMask
(img image.Image)
renderers/svg/svg.go:507
↓ 1 callers
Method
renderTo
(r Renderer, m Matrix, glyphs []text.Glyph, ppem uint16)
font.go:779
↓ 1 callers
Method
returnNode
(n *SweepNode)
path_intersection.go:728
↓ 1 callers
Function
rhombitrihexagonalTiling
(ctx *canvas.Context, clip *canvas.Path)
resources/docs/tiling/main.go:87
↓ 1 callers
Function
run
(window *app.Window)
examples/gio/main.go:25
↓ 1 callers
Method
setDashes
(offset float64, dashes []float64)
renderers/ps/ps.go:147
↓ 1 callers
Method
setDashes
(offset float64, dashes []float64)
renderers/tex/tex.go:169
↓ 1 callers
Method
setLineCap
(capper canvas.Capper)
renderers/ps/ps.go:116
↓ 1 callers
Method
setLineJoin
(joiner canvas.Joiner)
renderers/ps/ps.go:131
↓ 1 callers
Method
setLineWidth
(width float64)
renderers/ps/ps.go:102
↓ 1 callers
Method
setMiterLimit
(limit float64)
renderers/ps/ps.go:109
↓ 1 callers
Method
setMiterLimit
(limit float64)
renderers/tex/tex.go:131
↓ 1 callers
Method
setStroke
(paint canvas.Paint)
renderers/tex/tex.go:110
↓ 1 callers
Method
setStrokeCap
(capper canvas.Capper)
renderers/tex/tex.go:138
↓ 1 callers
Method
setStrokeJoin
(joiner canvas.Joiner)
renderers/tex/tex.go:153
↓ 1 callers
Method
setStrokeWidth
(width float64)
renderers/tex/tex.go:124
↓ 1 callers
Function
sortObjectOffsets
(objects map[pdfRef]int)
cmd/pdftext/writer.go:23
↓ 1 callers
Function
splitImageAlphaChannel
(img image.Image)
renderers/svg/svg.go:530
↓ 1 callers
Function
standardFontName
(font *canvas.Font)
renderers/pdf/writer.go:289
↓ 1 callers
Function
toNRGBA
(col color.Color)
renderers/ps/util.go:17
↓ 1 callers
Function
toP26_6
(p Point)
util.go:210
↓ 1 callers
Method
up
func (q *SweepEvents) Fix(i int) { if !q.down(i, len(*q)) { q.up(i) } } from container/heap
path_intersection.go:473
↓ 1 callers
Function
usrShareFontsNotoNotoserifdevanagariRegularTtfBytes
()
examples/html-canvas/files.go:124
↓ 1 callers
Function
usrShareFontsTtfDejavusansTtfBytes
()
examples/html-canvas/files.go:104
↓ 1 callers
Function
usrShareFontsTtfDejavuserifTtfBytes
()
examples/html-canvas/files.go:84
↓ 1 callers
Method
writeBytes
(b []byte)
renderers/pdf/writer.go:131
↓ 1 callers
Method
writeFont
(ref pdfRef, font *canvas.Font, vertical bool)
renderers/pdf/writer.go:366
↓ 1 callers
Method
writeFontStyle
(face, faceMain *canvas.FontFace, rtl bool, fill string)
renderers/svg/svg.go:293
↓ 1 callers
Method
writeOutlines
()
renderers/pdf/writer.go:609
↓ 1 callers
Function
xvalues
()
examples/go-chart/main.go:104
↓ 1 callers
Function
yvalues
()
examples/go-chart/main.go:115
Function
AVIF
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
Method
Add
(face *FontFace, text string)
text.go:578
Method
AddAnchor
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
Method
AddAnchor
AddAnchor adds an anchor to which a link can point.
renderers/pdf/writer.go:924
Method
AddCanvas
(c *Canvas, valign VerticalAlign)
text.go:584
Method
AddClass
AddClass adds a class to the class list.
renderers/svg/svg.go:138
Method
AddImage
(img image.Image, res Resolution, valign VerticalAlign)
text.go:596
Method
AddLaTeX
(s string)
text.go:602
Method
AddLink
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
Method
AddLink
AddLink adds a local or external link. Local links are # + anchor name (see AddAnchor).
renderers/pdf/writer.go:929
Method
AddOptions
(options ...renderer.Option)
markdown.go:197
Method
AddOutline
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
Method
AddOutline
AddOutline adds an outline element.
renderers/pdf/writer.go:950
Method
AddPath
(path *Path, col color.RGBA, valign VerticalAlign)
text.go:590
Method
And
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
Method
AppliesTo
(elem svgElem)
svg.go:1223
Method
AppliesTo
(elem svgElem)
svg.go:1265
Method
AppliesTo
(elems []svgElem)
svg.go:1299
Function
Arc
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
Method
Arc
Arc returns the arguments for arcs (rx,ry,rot,large,sweep).
path.go:1993
Method
Arc
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
Method
ArcTo
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
Method
ArcTo
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
Function
AssetNames
AssetNames returns the names of the assets.
examples/html-canvas/files.go:204
Method
At
At returns the color at position t ∈ [0,1].
colors.go:114
Method
At
At returns the color at position (x,y).
colors.go:196
Method
At
At returns the color at position (x,y).
colors.go:242
Method
At
(x, y int)
image/image.go:129
Method
At
(x, y int)
image/image.go:204
Method
At
(x, y int)
image/image.go:299
Method
At
(x, y int)
image/image.go:412
Method
At
(x, y int)
image/image.go:512
Method
At
(x, y int)
renderers/rasterizer/util.go:54
Function
BenchmarkEqualAbs
(b *testing.B)
util_test.go:389
Function
BenchmarkEqualIfElse
(b *testing.B)
util_test.go:404
Function
BenchmarkScanner
(b *testing.B)
path_scanner_test.go:5
Function
BenchmarkToRasterizer
(b *testing.B)
path_test.go:959
Function
BenchmarkToScanx
(b *testing.B)
path_test.go:994
Method
Bounds
()
image/image.go:122
Method
Bounds
()
image/image.go:297
Method
Bounds
()
image/image.go:410
Method
Bounds
()
image/image.go:510
Method
Bytes
()
cmd/pdftext/encoding.go:120
Method
Bytes
()
cmd/pdftext/encoding.go:196
Function
CacheSystemFonts
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
Method
Cap
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
Method
Cap
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
Method
Cap
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
Method
Center
Center returns the center point.
util.go:419
Method
Centroid
Centroid returns the center point of the polygon.
polyline.go:119
Method
Circle
Circle draws a circle at the given coords with a given radius.
renderers/gochart.go:154
Method
ClearTextRotation
ClearTextRotation clears rotation.
renderers/gochart.go:216
Method
Clip
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
Method
Close
Close adds a new point equal to the first, closing the polyline.
polyline.go:40
Method
Close
Close finalizes a shape as drawn by LineTo.
renderers/gochart.go:133
Method
Close
Close finished and closes the TeX file.
renderers/tex/tex.go:39
Method
ClosestPoint
ClosestPoint returns a point in the rectangle closest to the given point.
util.go:488
Method
ColorModel
()
image/image.go:118
Method
ColorModel
()
image/image.go:200
Method
ColorModel
()
image/image.go:295
Method
ColorModel
()
image/image.go:408
Method
ColorModel
()
image/image.go:508
Method
CompareH
(b *SweepPoint)
path_intersection.go:1011
Method
Contains
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
Method
Contains
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
Method
ContainsLine
(a, b Point)
util.go:549
Method
ContainsPoint
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
Method
CopyTo
CopyTo returns a copy of p, using the memory of path q.
path.go:276
← previous
next →
801–900 of 1,447, ranked by callers