MCPcopy Create free account

hub / github.com/ajhager/rog / functions

Functions152 in github.com/ajhager/rog

↓ 24 callersMethodSet
Set draws a string starting at x,y onto the console, wrapping at the bounds if needed.
console.go:83
↓ 19 callersFunctioncolorToFloats
(c RGB)
color.go:8
↓ 11 callersMethodClose
()
backend.go:184
↓ 11 callersMethodMouse
()
backend.go:225
↓ 11 callersFunctionclampF
(low, high, value float64)
color.go:22
↓ 9 callersMethodOpen
(width, height, zoom int, fs bool, font *FontData)
backend.go:102
↓ 9 callersMethodRunning
()
backend.go:180
↓ 8 callersMethodKey
()
backend.go:271
↓ 8 callersMethodWidth
Width returns the width in cells of the map.
map.go:56
↓ 7 callersMethodBlend
(RGB, int, int)
color.go:156
↓ 6 callersMethodHeight
Height returns the height in cells of the map.
map.go:61
↓ 6 callersMethodIn
In returns whether the coordinate is inside the map bounds.
map.go:21
↓ 5 callersMethodAlpha
Alpha = (1-alpha)*old + alpha*(new-old)
color.go:242
↓ 5 callersMethodGet
Get returns the fg, bg colors and rune of the cell.
console.go:94
↓ 5 callersFunctionmovePlayer
(xx, yy int)
demos/fov/main.go:59
↓ 5 callersFunctionpingpong
(delta, start, min, max float64)
demos/perlin/main.go:32
↓ 4 callersMethodFill
Fill draws a rect on the root console using ch.
console.go:99
↓ 4 callersFunctionabs
*** Helper functions ***/
path.go:92
↓ 4 callersMethodaddNode
(node *Node)
path.go:209
↓ 4 callersFunctionfovCircularCastRay
Circular Raycasting
fov.go:21
↓ 4 callersFunctionfovCircularPostProc
(fov *Map, x0, y0, x1, y1, dx, dy int)
fov.go:55
↓ 3 callersFunctionNewNode
Create a new Node
path.go:176
↓ 3 callersMethodPushNode
* Node */
path.go:78
↓ 3 callersMethodScale
Scale = old * s
color.go:227
↓ 3 callersMethodUpdate
()
stats.go:21
↓ 3 callersFunctionaddAlpha
(top, bot RGB, a float64)
color.go:133
↓ 3 callersFunctiondodgeF
(top, bot float64)
color.go:36
↓ 3 callersFunctionmin
(a, b int)
fov.go:13
↓ 3 callersFunctionnewNodeList
(rows, cols int)
path.go:201
↓ 3 callersFunctionoverlayF
(top, bot float64)
color.go:65
↓ 3 callersFunctionscale
(bot RGB, s float64)
color.go:114
↓ 2 callersMethodBurn
Burn = old + new - white
color.go:222
↓ 2 callersMethodClear
Clear resets the map to completely unblocked but unviewable.
map.go:46
↓ 2 callersMethodDodge
Dodge = new / (white - old)
color.go:197
↓ 2 callersFunctionHeuristic
Diagonal/Chebyshev distance is used.
path.go:276
↓ 2 callersMethodLook
Look indicates if the cell at the coordinate can be seen.
map.go:41
↓ 2 callersMethodName
(title string)
backend.go:190
↓ 2 callersFunctionReadFont
(r io.Reader, cellWidth, cellHeight int, maps string)
font.go:25
↓ 2 callersFunctionadd
(top, bot RGB)
color.go:123
↓ 2 callersFunctionalpha
(top, bot RGB, a float64)
color.go:143
↓ 2 callersFunctionburn
(top, bot RGB)
color.go:104
↓ 2 callersFunctiondarken
(top, bot RGB)
color.go:94
↓ 2 callersFunctiondodge
(top, bot RGB)
color.go:45
↓ 2 callersMethodgetNode
(x, y int)
path.go:213
↓ 2 callersMethodhasNode
(node *Node)
path.go:221
↓ 2 callersMethodletter
Draw a letter at a certain coordinate
backend.go:303
↓ 2 callersFunctionlighten
(top, bot RGB)
color.go:84
↓ 2 callersFunctionmax
(a, b int)
fov.go:6
↓ 2 callersFunctionmultiply
(top, bot RGB)
color.go:26
↓ 2 callersFunctionoverlay
(top, bot RGB)
color.go:74
↓ 2 callersMethodput
(x, y, i, t int, fg, bg Blender, ch rune)
console.go:39
↓ 2 callersFunctionscreen
(top, bot RGB)
color.go:55
↓ 2 callersMethodset
(i, j, x, y, w, h int, fg, bg Blender, data string, rest ...interface{})
console.go:57
↓ 2 callersMethodsetKey
(key, state int)
backend.go:275
↓ 1 callersFunctionAstar
A* search algorithm. See http://en.wikipedia.org/wiki/A*_search_algorithm
path.go:307
↓ 1 callersMethodBlit
Blit draws con onto this console with top left starting at x, y.
console.go:113
↓ 1 callersMethodBlock
Block sets a cell as blocking or not.
map.go:36
↓ 1 callersMethodCursor
(on bool)
backend.go:229
↓ 1 callersMethodFov
Update runs the give fov alogrithm on the map.
map.go:26
↓ 1 callersMethodHeight
Height returns the height of the console in cells.
console.go:128
↓ 1 callersFunctionLine
Line returns the points on the grid that the line would pass through.
line.go:9
↓ 1 callersMethodMap
(ch rune)
font.go:17
↓ 1 callersMethodMoveBlocked
(x, y int)
path.go:11
↓ 1 callersFunctionNewConsole
NewConsole creates an empty console.
console.go:15
↓ 1 callersFunctionNewGraph
Return a Graph from a map of coordinates (those that are passible)
path.go:237
↓ 1 callersFunctionNewMapData
Return a new MapData by value given some dimensions
path.go:116
↓ 1 callersFunctionNewStats
()
stats.go:13
↓ 1 callersMethodNode
Get or create a *Node based on x, y coordinates. Avoids duplicated nodes!
path.go:246
↓ 1 callersMethodPop
()
path.go:67
↓ 1 callersMethodPopNode
()
path.go:82
↓ 1 callersMethodPush
* heap.interface */
path.go:53
↓ 1 callersMethodRandScale
Scale the color a random amount.
color.go:247
↓ 1 callersMethodRemoveNode
(n *Node)
path.go:86
↓ 1 callersMethodRender
(console *Console)
backend.go:194
↓ 1 callersMethodSetR
SetR draws a string starting at x,y onto the console, wrapping at the bounds created by x, y, w, h if needed. If h is 0, the text will cut off at the
console.go:89
↓ 1 callersFunctionTerminal
Terminal returns the raw, uncompressed file data data.
terminal.go:281
↓ 1 callersMethodWidth
Width returns the width of the console in cells.
console.go:123
↓ 1 callersFunctionexample
()
demos/fov/main.go:76
↓ 1 callersFunctionglInit
(width, height int)
backend.go:281
↓ 1 callersFunctionintensity
(px, py, cx, cy, r int)
demos/fov/main.go:68
↓ 1 callersMethodmouseMove
(x, y int)
backend.go:237
↓ 1 callersMethodmousePress
(button, state int)
backend.go:244
↓ 1 callersMethodremoveNode
(node *Node)
path.go:217
↓ 1 callersFunctionrender
()
demos/tcod/main.go:28
↓ 1 callersFunctionrender
()
demos/perlin/main.go:55
↓ 1 callersFunctionretracePath
* Astar func */
path.go:261
FunctionAdd
(top RGB)
color.go:318
MethodAdd
Add = old + new
color.go:232
FunctionAddAlpha
(top RGB, a float64)
color.go:324
MethodAddAlpha
AddAlpha = old + alpha*new
color.go:237
FunctionAlpha
(top RGB, a float64)
color.go:330
MethodBlend
RGB Blender interface
color.go:252
MethodBlend
BlendFunc Blender interface
color.go:260
MethodBlend
(c RGB, i, t int)
color.go:339
FunctionBlit
(con *Console, x, y int)
rog.go:80
FunctionBurn
(top RGB)
color.go:300
FunctionClear
Clear draws a rect over the entire root console.
rog.go:105
MethodClear
Clear is a short hand to fill the entire screen with the given colors and rune.
console.go:108
MethodClone
()
path.go:124
FunctionClose
Close shuts down the windowing system. No rog functions should be called after this.
rog.go:40
next →1–100 of 152, ranked by callers