Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ajhager/rog
/ functions
Functions
152 in github.com/ajhager/rog
⨍
Functions
152
◇
Types & classes
20
↓ 24 callers
Method
Set
Set draws a string starting at x,y onto the console, wrapping at the bounds if needed.
console.go:83
↓ 19 callers
Function
colorToFloats
(c RGB)
color.go:8
↓ 11 callers
Method
Close
()
backend.go:184
↓ 11 callers
Method
Mouse
()
backend.go:225
↓ 11 callers
Function
clampF
(low, high, value float64)
color.go:22
↓ 9 callers
Method
Open
(width, height, zoom int, fs bool, font *FontData)
backend.go:102
↓ 9 callers
Method
Running
()
backend.go:180
↓ 8 callers
Method
Key
()
backend.go:271
↓ 8 callers
Method
Width
Width returns the width in cells of the map.
map.go:56
↓ 7 callers
Method
Blend
(RGB, int, int)
color.go:156
↓ 6 callers
Method
Height
Height returns the height in cells of the map.
map.go:61
↓ 6 callers
Method
In
In returns whether the coordinate is inside the map bounds.
map.go:21
↓ 5 callers
Method
Alpha
Alpha = (1-alpha)*old + alpha*(new-old)
color.go:242
↓ 5 callers
Method
Get
Get returns the fg, bg colors and rune of the cell.
console.go:94
↓ 5 callers
Function
movePlayer
(xx, yy int)
demos/fov/main.go:59
↓ 5 callers
Function
pingpong
(delta, start, min, max float64)
demos/perlin/main.go:32
↓ 4 callers
Method
Fill
Fill draws a rect on the root console using ch.
console.go:99
↓ 4 callers
Function
abs
*** Helper functions ***/
path.go:92
↓ 4 callers
Method
addNode
(node *Node)
path.go:209
↓ 4 callers
Function
fovCircularCastRay
Circular Raycasting
fov.go:21
↓ 4 callers
Function
fovCircularPostProc
(fov *Map, x0, y0, x1, y1, dx, dy int)
fov.go:55
↓ 3 callers
Function
NewNode
Create a new Node
path.go:176
↓ 3 callers
Method
PushNode
* Node */
path.go:78
↓ 3 callers
Method
Scale
Scale = old * s
color.go:227
↓ 3 callers
Method
Update
()
stats.go:21
↓ 3 callers
Function
addAlpha
(top, bot RGB, a float64)
color.go:133
↓ 3 callers
Function
dodgeF
(top, bot float64)
color.go:36
↓ 3 callers
Function
min
(a, b int)
fov.go:13
↓ 3 callers
Function
newNodeList
(rows, cols int)
path.go:201
↓ 3 callers
Function
overlayF
(top, bot float64)
color.go:65
↓ 3 callers
Function
scale
(bot RGB, s float64)
color.go:114
↓ 2 callers
Method
Burn
Burn = old + new - white
color.go:222
↓ 2 callers
Method
Clear
Clear resets the map to completely unblocked but unviewable.
map.go:46
↓ 2 callers
Method
Dodge
Dodge = new / (white - old)
color.go:197
↓ 2 callers
Function
Heuristic
Diagonal/Chebyshev distance is used.
path.go:276
↓ 2 callers
Method
Look
Look indicates if the cell at the coordinate can be seen.
map.go:41
↓ 2 callers
Method
Name
(title string)
backend.go:190
↓ 2 callers
Function
ReadFont
(r io.Reader, cellWidth, cellHeight int, maps string)
font.go:25
↓ 2 callers
Function
add
(top, bot RGB)
color.go:123
↓ 2 callers
Function
alpha
(top, bot RGB, a float64)
color.go:143
↓ 2 callers
Function
burn
(top, bot RGB)
color.go:104
↓ 2 callers
Function
darken
(top, bot RGB)
color.go:94
↓ 2 callers
Function
dodge
(top, bot RGB)
color.go:45
↓ 2 callers
Method
getNode
(x, y int)
path.go:213
↓ 2 callers
Method
hasNode
(node *Node)
path.go:221
↓ 2 callers
Method
letter
Draw a letter at a certain coordinate
backend.go:303
↓ 2 callers
Function
lighten
(top, bot RGB)
color.go:84
↓ 2 callers
Function
max
(a, b int)
fov.go:6
↓ 2 callers
Function
multiply
(top, bot RGB)
color.go:26
↓ 2 callers
Function
overlay
(top, bot RGB)
color.go:74
↓ 2 callers
Method
put
(x, y, i, t int, fg, bg Blender, ch rune)
console.go:39
↓ 2 callers
Function
screen
(top, bot RGB)
color.go:55
↓ 2 callers
Method
set
(i, j, x, y, w, h int, fg, bg Blender, data string, rest ...interface{})
console.go:57
↓ 2 callers
Method
setKey
(key, state int)
backend.go:275
↓ 1 callers
Function
Astar
A* search algorithm. See http://en.wikipedia.org/wiki/A*_search_algorithm
path.go:307
↓ 1 callers
Method
Blit
Blit draws con onto this console with top left starting at x, y.
console.go:113
↓ 1 callers
Method
Block
Block sets a cell as blocking or not.
map.go:36
↓ 1 callers
Method
Cursor
(on bool)
backend.go:229
↓ 1 callers
Method
Fov
Update runs the give fov alogrithm on the map.
map.go:26
↓ 1 callers
Method
Height
Height returns the height of the console in cells.
console.go:128
↓ 1 callers
Function
Line
Line returns the points on the grid that the line would pass through.
line.go:9
↓ 1 callers
Method
Map
(ch rune)
font.go:17
↓ 1 callers
Method
MoveBlocked
(x, y int)
path.go:11
↓ 1 callers
Function
NewConsole
NewConsole creates an empty console.
console.go:15
↓ 1 callers
Function
NewGraph
Return a Graph from a map of coordinates (those that are passible)
path.go:237
↓ 1 callers
Function
NewMapData
Return a new MapData by value given some dimensions
path.go:116
↓ 1 callers
Function
NewStats
()
stats.go:13
↓ 1 callers
Method
Node
Get or create a *Node based on x, y coordinates. Avoids duplicated nodes!
path.go:246
↓ 1 callers
Method
Pop
()
path.go:67
↓ 1 callers
Method
PopNode
()
path.go:82
↓ 1 callers
Method
Push
* heap.interface */
path.go:53
↓ 1 callers
Method
RandScale
Scale the color a random amount.
color.go:247
↓ 1 callers
Method
RemoveNode
(n *Node)
path.go:86
↓ 1 callers
Method
Render
(console *Console)
backend.go:194
↓ 1 callers
Method
SetR
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 callers
Function
Terminal
Terminal returns the raw, uncompressed file data data.
terminal.go:281
↓ 1 callers
Method
Width
Width returns the width of the console in cells.
console.go:123
↓ 1 callers
Function
example
()
demos/fov/main.go:76
↓ 1 callers
Function
glInit
(width, height int)
backend.go:281
↓ 1 callers
Function
intensity
(px, py, cx, cy, r int)
demos/fov/main.go:68
↓ 1 callers
Method
mouseMove
(x, y int)
backend.go:237
↓ 1 callers
Method
mousePress
(button, state int)
backend.go:244
↓ 1 callers
Method
removeNode
(node *Node)
path.go:217
↓ 1 callers
Function
render
()
demos/tcod/main.go:28
↓ 1 callers
Function
render
()
demos/perlin/main.go:55
↓ 1 callers
Function
retracePath
* Astar func */
path.go:261
Function
Add
(top RGB)
color.go:318
Method
Add
Add = old + new
color.go:232
Function
AddAlpha
(top RGB, a float64)
color.go:324
Method
AddAlpha
AddAlpha = old + alpha*new
color.go:237
Function
Alpha
(top RGB, a float64)
color.go:330
Method
Blend
RGB Blender interface
color.go:252
Method
Blend
BlendFunc Blender interface
color.go:260
Method
Blend
(c RGB, i, t int)
color.go:339
Function
Blit
(con *Console, x, y int)
rog.go:80
Function
Burn
(top RGB)
color.go:300
Function
Clear
Clear draws a rect over the entire root console.
rog.go:105
Method
Clear
Clear is a short hand to fill the entire screen with the given colors and rune.
console.go:108
Method
Clone
()
path.go:124
Function
Close
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