MCPcopy Create free account

hub / github.com/ajstarks/deck / functions

Functions370 in github.com/ajstarks/deck

↓ 77 callersFunctionrandp
randp returns a random float
cmd/testgen/testgen.go:30
↓ 68 callersMethodRect
Rect makes a rectangle, centered at (x,y), with (w,h) dimensions, at the specified color and optional opacity.
generate/generate.go:318
↓ 64 callersMethodText
Text places plain text aligned at (x,y), with specified font, size and color. Opacity is optional
generate/generate.go:143
↓ 53 callersMethodCircle
Circle makes a circle, centered at (x,y) with width w, at the specified color and optional opacity.
generate/generate.go:302
↓ 43 callersMethodEndSlide
EndSlide ends a slide.
generate/generate.go:69
↓ 43 callersMethodStartSlide
StartSlide begins a slide.
generate/generate.go:57
↓ 32 callersMethodLine
Line makes a line from (x1,y1) to (x2, y2), with the specified color with optional opacity; thickness is size.
generate/generate.go:350
↓ 21 callersMethodPolygon
Polygon makes a polygon with the specified color (with optional opacity), with coordinates in x and y slices.
generate/generate.go:390
↓ 20 callersFunctioneresp
eresp sends the client a JSON encoded error
cmd/deckd/deckd.go:349
↓ 19 callersFunctionrandcolor
randcolor returns a random color in RGB format
cmd/testgen/testgen.go:25
↓ 17 callersMethodArc
Arc makes an arc centered at (x,y), with specified color (with optional opacity), with dimensions (w,h), between angle a1 and a2 (specified in degrees
generate/generate.go:362
↓ 15 callersFunctioncolorlookup
colorlookup returns a RGB triple corresponding to the named color, "rgb(r,g,b)" or "#rrggbb" string. On error, return black.
cmd/pngdeck/colors.go:167
↓ 15 callersFunctionpct
pct converts percentages to canvas measures
cmd/svgdeck/svgdeck.go:122
↓ 15 callersFunctionpct
pct converts percentages to canvas measures
cmd/pdfdeck/pdfdeck.go:109
↓ 15 callersFunctionpct
pct converts percentages to canvas measures
cmd/pngdeck/pngdeck.go:83
↓ 14 callersFunctioncolorlookup
colorlookup returns a RGB triple corresponding to the named color, "rgb(r,g,b)" or "#rrggbb" string. On error, return black.
cmd/pdfdeck/colors.go:167
↓ 14 callersFunctionpct
pct computes percentages
cmd/vgdeck/vgdeck.go:289
↓ 13 callersMethodEllipse
Ellipse makes a ellipse graphic, centered at (x,y), with (w,h) dimensions, at the specified color and optional opacity.
generate/generate.go:334
↓ 11 callersFunctionRead
Read reads the deck description file
deck.go:207
↓ 11 callersFunctiondimen
dimen returns canvas dimensions from percentages
cmd/svgdeck/svgdeck.go:139
↓ 11 callersFunctiondimen
dimen returns canvas dimensions from percentages
cmd/pdfdeck/pdfdeck.go:114
↓ 11 callersFunctiondimen
dimen returns canvas dimensions from percentages
cmd/pngdeck/pngdeck.go:88
↓ 11 callersFunctionshow
(name string, value int)
cmd/deckinfo/deckinfo.go:13
↓ 10 callersFunctionPwidth
Pwidth computes the percent width based on canvas size
deck.go:228
↓ 10 callersFunctiondimen
dimen returns device dimemsion from percentages
cmd/vgdeck/vgdeck.go:363
↓ 10 callersFunctionshowslide
showslide shows a slide
cmd/fcdeck/fcdeck.go:288
↓ 10 callersFunctionshowslide
showlide displays slides
cmd/vgdeck/vgdeck.go:370
↓ 9 callersFunctionsetopacity
setopacity sets the alpha value: 0 == default value (opaque) -1 == fully transparent > 0 set opacity percent
cmd/pdfdeck/pdfdeck.go:122
↓ 9 callersFunctiontf
(x, y int, s string, size float64)
cmd/codepicdeck/code/artist.go:16
↓ 8 callersMethodImage
Image places the named image centered at (x, y), with dimensions of (w, h).
generate/generate.go:416
↓ 8 callersMethodTextMid
TextMid places centered text aligned at (x,y), with specified font, size and color. Opacity is optional.
generate/generate.go:160
↓ 8 callersFunctionsetop
setop sets the opacity as a truncated fraction of 255
cmd/pngdeck/pngdeck.go:128
↓ 7 callersMethodEndDeck
EndDeck ends a slide.
generate/generate.go:52
↓ 7 callersMethodStartDeck
StartDeck begins a slide deck.
generate/generate.go:47
↓ 7 callersFunctionsvgcolor
svgcolor returns a color spec; if hsv, convert to rgb, otherwise pass unchanged
cmd/svgdeck/svgdeck.go:253
↓ 6 callersMethodCode
Code makes a code block at (x,y), with specified size and color (opacity is optional), on a light gray background with the specified margin width.
generate/generate.go:255
↓ 6 callersMethodTextBlock
TextBlock makes a block of text aligned at (x,y), wrapped at margin; with specified font, size and color. Opacity is optional.
generate/generate.go:196
↓ 6 callersFunctionshowtext
showtext places fully attributed text at the specified location
cmd/fcdeck/fcdeck.go:248
↓ 5 callersMethodTextEnd
TextEnd places right-justified text aligned at (x,y), with specified font, size and color. Opacity is optional.
generate/generate.go:178
↓ 5 callersFunctionsetop
setop sets the alpha value: 0 == default value (opaque) -1 == fully transparent > 0 set opacity percent
cmd/svgdeck/svgdeck.go:147
↓ 5 callersFunctionshowtext
showtext places fully attributed text at the specified location
cmd/pdfdeck/pdfdeck.go:328
↓ 5 callersFunctionshowtext
showtext places fully attributed text at the specified location
cmd/pngdeck/pngdeck.go:328
↓ 5 callersMethodtext
text makes text markup from the deck text structure.
generate/generate.go:114
↓ 4 callersFunctionNewSlides
NewSlides initializes he generated deck structure.
generate/generate.go:42
↓ 4 callersFunctiondot
(x, y, d int)
cmd/codepicdeck/code/d4h.go:15
↓ 4 callersFunctionfontlookup
fontlookup maps font aliases to implementation font names
cmd/svgdeck/svgdeck.go:165
↓ 4 callersFunctionfontlookup
fontlookup maps font aliases to implementation font names
cmd/pdfdeck/pdfdeck.go:144
↓ 4 callersMethodlarrow
larrow draws an arrow pointing to the left
cmd/testgen/testgen.go:119
↓ 4 callersFunctionloadfont
loadfont loads a font at the specified size
cmd/pngdeck/pngdeck.go:286
↓ 4 callersFunctionpolar
(cx, cy int, r, t float64)
cmd/codepicdeck/code/starx.go:10
↓ 4 callersFunctionreqhead
reqhead makes a HTTP request, with the specified header, printing the response
cmd/deckweb/deckweb.go:168
↓ 4 callersFunctionsetop
setop sets the opacity as a truncated fraction of 255
cmd/fcdeck/fcdeck.go:144
↓ 4 callersFunctionshowrb
showrb prints the response body
cmd/deckweb/deckweb.go:157
↓ 4 callersFunctionxmlesc
(s string)
cmd/deckinfo/deckinfo.go:24
↓ 3 callersMethodCurve
Curve makes a Bezier curve between (x1, y2) and (x3, y3), with control points at (x2, y2), thickness is specified by size.
generate/generate.go:379
↓ 3 callersFunctionDimen
Dimen computes the coordinates and size of an object
deck.go:220
↓ 3 callersMethodSquare
Square makes a square, centered at (x,y), with width w, at the specified color and optional opacity.
generate/generate.go:286
↓ 3 callersMethodboxtext
boxtext makes a colored box with centered text
cmd/testgen/testgen.go:102
↓ 3 callersFunctioncoord
(x, y, size int, label string)
cmd/codepicdeck/code/swoosh.go:16
↓ 3 callersFunctioncoord
(x, y, size int)
cmd/codepicdeck/code/textpath.go:16
↓ 3 callersFunctioncube
cube makes a cube with its front-facing bottom edge at x,y, lit from the top
cmd/testgen/testgen.go:149
↓ 3 callersFunctiondorect
dorect draws a rectangle
cmd/svgdeck/svgdeck.go:300
↓ 3 callersFunctionfillop
fillop fills with the specified color and opacity
cmd/svgdeck/svgdeck.go:266
↓ 3 callersFunctiongear
(x, y, w, h, n, l, m int, color string)
cmd/codepicdeck/code/gear.go:16
↓ 3 callersFunctionloadfont
loadfont loads a font at the specified size
cmd/fcdeck/fcdeck.go:218
↓ 3 callersFunctionloadimage
loadimage loads all the images of the deck into a map for later display
cmd/vgdeck/vgdeck.go:61
↓ 3 callersFunctionpct
pct converts percentages to canvas measures
cmd/fcdeck/fcdeck.go:108
↓ 3 callersFunctionpctwidth
(p float64, p1, p2 openvg.VGfloat)
cmd/vgdeck/vgdeck.go:293
↓ 3 callersFunctionplotfunc
(left, top, w, h int, min, max, fmin, fmax, interval float64, f func(float64) float64, style ...string)
cmd/codepicdeck/code/plotfunc.go:21
↓ 3 callersFunctionrandcolor
()
cmd/codepicdeck/code/cube.go:14
↓ 3 callersMethodrarrow
rarrow draws an arrow pointing to the right
cmd/testgen/testgen.go:108
↓ 3 callersFunctionreadDeck
ReadDeck reads the deck file, rendering to the canvas
cmd/fcdeck/fcdeck.go:485
↓ 3 callersFunctionrectangle
rectangle draws a rectangle
cmd/pdfdeck/pdfdeck.go:228
↓ 3 callersFunctionshowtext
showtext displays text
cmd/vgdeck/vgdeck.go:349
↓ 3 callersFunctionsky
(x, y, w, h, a int, s string)
cmd/codepicdeck/code/skewabc.go:16
↓ 3 callersFunctionsmile
(x, y, r int)
cmd/codepicdeck/code/creepy.go:11
↓ 3 callersFunctionstrokeop
strokeop stroke a color at the specified opacity
cmd/svgdeck/svgdeck.go:261
↓ 3 callersFunctionvalidpath
validpath returns the base of path, or the empty string for the current path
cmd/deckd/deckd.go:340
↓ 3 callersFunctionvmap
vmap maps one interval to another
cmd/codepicdeck/code/sincos.go:16
↓ 3 callersFunctionvmap
(value float64, l1 float64, h1 float64, l2 float64, h2 float64)
cmd/codepicdeck/code/plot.go:15
↓ 3 callersFunctionvmap
(value float64, l1 float64, h1 float64, l2 float64, h2 float64)
cmd/codepicdeck/code/clock.go:17
↓ 2 callersMethodList
List makes a plain, bullet, or plain list with the specified font, size and color, with optional spacing
generate/generate.go:273
↓ 2 callersFunctionPolycoord
Polycoord converts slices of coordinates to strings.
generate/generate.go:400
↓ 2 callersFunctionReadDeck
ReadDeck reads the deck description file from a io.Reader
deck.go:193
↓ 2 callersFunctionSearch
Search searches the deck for the specified text, returning the slide number if found
deck.go:236
↓ 2 callersFunctionaline
(x, y int, r, a1, a2 float64)
cmd/codepicdeck/code/starx.go:28
↓ 2 callersFunctionback
back shows the previous slide
cmd/fcdeck/fcdeck.go:493
↓ 2 callersFunctioncolorNumbers
colorNumbers returns a list of numbers from a comma separated list, in the form of xxx(n1, n2, n3), after removing tabs and spaces.
cmd/pdfdeck/colors.go:207
↓ 2 callersFunctioncolorNumbers
colorNumbers returns a list of numbers from a comma separated list, in the form of xxx(n1, n2, n3), after removing tabs and spaces.
cmd/pngdeck/colors.go:207
↓ 2 callersMethoddarrow
darrow draws an arrow pointing down
cmd/testgen/testgen.go:130
↓ 2 callersFunctiondorect
dorect draws a rectangle
cmd/fcdeck/fcdeck.go:176
↓ 2 callersFunctiondorect
dorect draws a rectangle
cmd/pngdeck/pngdeck.go:201
↓ 2 callersFunctionforward
forward shows the next slide
cmd/fcdeck/fcdeck.go:502
↓ 2 callersFunctiongradient
gradient sets the background color gradient
cmd/pdfdeck/pdfdeck.go:196
↓ 2 callersFunctiongradient
gradient sets the rect color gradient
cmd/pngdeck/pngdeck.go:157
↓ 2 callersFunctiongridtoggle
gridtoggle toggles a grid overlay
cmd/fcdeck/fcdeck.go:522
↓ 2 callersFunctionlinesettings
linesettings set the line style
cmd/pdfdeck/pdfdeck.go:134
↓ 2 callersFunctionpichart
(left, top, w, h int, function func(float64) float64)
cmd/codepicdeck/code/sincos.go:26
↓ 2 callersFunctionplaintext
plaintext places lines of text
cmd/pdfdeck/pdfdeck.go:313
↓ 2 callersFunctionplotfunc
(left, top, w, h int, style string, min, max, fmin, fmax, interval float64, f func(float64) float64)
cmd/codepicdeck/code/pf0.go:20
next →1–100 of 370, ranked by callers