Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/brandonagr/gocupi
/ functions
Functions
181 in github.com/brandonagr/gocupi
⨍
Functions
181
◇
Types & classes
33
↓ 47 callers
Method
Scaled
Scales the Coordinate by the specified factor
polargraph/coordinate.go:43
↓ 43 callers
Method
Minus
Return the vector from source to dest
polargraph/coordinate.go:38
↓ 41 callers
Method
Add
Add two coordinates together
polargraph/coordinate.go:33
↓ 28 callers
Function
average
Returns an average of R,G,B from 0 to 1
polargraph/image.go:364
↓ 19 callers
Function
PrintCommandHelp
output the help for a specific command
gocupi.go:546
↓ 15 callers
Function
GetArgsAsFloats
Parse a series of numbers as floats
gocupi.go:523
↓ 13 callers
Function
sampleImageAt
Test the value at a given point and return a single interpolated value
polargraph/image.go:310
↓ 11 callers
Function
assertAreClose
assert that the two values are equal
polargraph/image_test.go:43
↓ 10 callers
Method
Close
()
polargraph/mouse.go:17
↓ 10 callers
Method
Intersection
Calculates the intersection between a circle and line segment, based on http://stackoverflow.com/questions/1073336/circle-line-collision-detection If
polargraph/coordinate.go:216
↓ 10 callers
Method
ToCoord
Convert the given polarCoordinate from polar to X,Y in the given PolarSystem
polargraph/coordinate.go:180
↓ 8 callers
Method
Len
Calculates length of vector
polargraph/coordinate.go:28
↓ 7 callers
Method
Ceil
Apply math.Ceil to each value
polargraph/coordinate.go:53
↓ 7 callers
Method
Len
Amount of data in the buffer
polargraph/interpolater.go:357
↓ 7 callers
Method
Write
Write settings to file
polargraph/settings.go:149
↓ 6 callers
Function
DrawMeander
* * Draws a meander like path between the center coordinate of the two circles * where the where the amplitude of the meander morphes from radius 1 to
polargraph/generator.go:535
↓ 6 callers
Method
Parse
Parse the data
polargraph/svg.go:146
↓ 6 callers
Function
PolarSystemFromSettings
Create a PolarSystem from the settings object
polargraph/coordinate.go:100
↓ 6 callers
Method
ToPolar
Convert the given coordinate from X,Y to polar in the given PolarSystem
polargraph/coordinate.go:149
↓ 5 callers
Method
Cap
Capacity of the buffer
polargraph/interpolater.go:362
↓ 5 callers
Method
DotProduct
Dot product between two vectors
polargraph/coordinate.go:74
↓ 5 callers
Method
Extents
Calculate the min and max coordinate in the given slice
polargraph/coordinate.go:278
↓ 5 callers
Function
NewParser
Create new parser
polargraph/svg.go:126
↓ 5 callers
Method
Normalized
Normalize the vector
polargraph/coordinate.go:68
↓ 5 callers
Method
Read
Read settings from file, setting the global variable
polargraph/settings.go:87
↓ 4 callers
Method
Equals
Test if the two coordinates are equal within a constant epsilon
polargraph/coordinate.go:84
↓ 4 callers
Function
PrintGenericHelp
output help summary
gocupi.go:558
↓ 4 callers
Function
assertAreEqual
assert that the two slices are equal
polargraph/svg_test.go:83
↓ 3 callers
Function
LoadImage
Load image data
polargraph/image.go:136
↓ 3 callers
Method
ReadCoord
Read two strings as a pair of doubles
polargraph/svg.go:202
↓ 2 callers
Method
Add
Add two coordinates together
polargraph/coordinate.go:124
↓ 2 callers
Method
CalculateDerivedFields
setup derived fields
polargraph/settings.go:118
↓ 2 callers
Method
Clamp
Clamp the values of X,Y to the given max/min
polargraph/coordinate.go:63
↓ 2 callers
Method
Dequeue
Remove a coordinate from the beginning of the buffer
polargraph/interpolater.go:340
↓ 2 callers
Method
Enqueue
Add a coordinate to the end of the buffer
polargraph/interpolater.go:324
↓ 2 callers
Function
GenerateParametric
Generate spirograph
polargraph/generator.go:13
↓ 2 callers
Function
GenerateRaster
Draw image by generate a series of arcs, where darknes of a pixel is a movement along the arc
polargraph/generator.go:831
↓ 2 callers
Function
MoveSpool
Move a specific spool a given distance
polargraph/driver.go:250
↓ 2 callers
Function
ParseCommand
Convert string to command, returns NotAValidCommand if not valid
polargraph/svg.go:84
↓ 2 callers
Function
ParseSvg
read svg xml data
polargraph/svg.go:242
↓ 2 callers
Method
PeekHasMoreArguments
Return if the next token is a command or not
polargraph/svg.go:193
↓ 2 callers
Method
Position
(slice float64)
polargraph/interpolater.go:14
↓ 2 callers
Method
ScaledBoth
Scale each axis seperately
polargraph/coordinate.go:48
↓ 2 callers
Method
Setup
(origin, dest, nextDest Coordinate)
polargraph/interpolater.go:12
↓ 2 callers
Method
Slices
()
polargraph/interpolater.go:13
↓ 2 callers
Method
String
PathCommand ToString
polargraph/svg.go:54
↓ 2 callers
Function
WriteStepsToSerial
Sends the given stepData to the stepper driver
polargraph/driver.go:148
↓ 2 callers
Function
clamp
Clamp a bound to inside the given bounds
polargraph/image.go:346
↓ 2 callers
Function
drawPixel
Draw a pixel at the given location
polargraph/generator.go:882
↓ 1 callers
Function
CountSteps
Count steps
polargraph/driver.go:104
↓ 1 callers
Function
CreateAndStartMouseReader
Return an implementation of MouseReader specific to the current platform
polargraph/mouse.go:34
↓ 1 callers
Function
DrawToImage
Draw coordinates to image
polargraph/image.go:16
↓ 1 callers
Function
FlipPlotCoords
(flipX, flipY bool, coords <-chan Coordinate, flippedCoords chan<- Coordinate)
gocupi.go:486
↓ 1 callers
Method
Floor
Apply math.Floor to each value
polargraph/coordinate.go:58
↓ 1 callers
Function
GaussianImage
Return a new image that is the result of applying a 3x3 gaussion blur to the image
polargraph/image.go:228
↓ 1 callers
Function
GenerateArc
Draw image by generate a series of arcs, where darknes of a pixel is a movement along the arc white is drawn with PenUp=true
polargraph/generator.go:301
↓ 1 callers
Function
GenerateBouncingLine
Generate a line that bounces off the edges of the grid
polargraph/generator.go:906
↓ 1 callers
Function
GenerateCrossHatch
Draw image by generate a series of arcs, where darknes of a pixel is a movement along the arc
polargraph/generator.go:630
↓ 1 callers
Function
GenerateGcodePath
Given GCodeData, returns all of the
polargraph/gcode.go:119
↓ 1 callers
Function
GenerateGrid
Generate parabolic curve out of a bunch of straight lines
polargraph/generator.go:251
↓ 1 callers
Function
GenerateHilbertCurve
Generate a Hilbert curve, based on code from http://en.wikipedia.org/wiki/Hilbert_curve
polargraph/generator.go:135
↓ 1 callers
Function
GenerateMeander
* * Sends the array of circles to the DrawMeander function * * 12 Dezember 2014 Sergio Daniels E-Mail: daniels.sergio@gmail.com */
polargraph/generator.go:410
↓ 1 callers
Function
GenerateParabolic
Generate parabolic curve out of a bunch of straight lines
polargraph/generator.go:197
↓ 1 callers
Function
GenerateSlidingCircle
Generate a circle that slides along a given axis
polargraph/generator.go:97
↓ 1 callers
Function
GenerateSpiral
Generate a spiral
polargraph/generator.go:57
↓ 1 callers
Function
GenerateSteps
Takes in coordinates and outputs stepData
polargraph/driver.go:27
↓ 1 callers
Function
GenerateSvgBoxPath
Send svg path points to channel
polargraph/svg.go:434
↓ 1 callers
Function
GenerateSvgCenterPath
Send svg path points to channel
polargraph/svg.go:393
↓ 1 callers
Function
GenerateSvgTopPath
Send svg path points to channel
polargraph/svg.go:469
↓ 1 callers
Function
GenerateTextPath
Pring this text
polargraph/text.go:10
↓ 1 callers
Method
GetLeftButton
()
polargraph/mouse.go:19
↓ 1 callers
Method
GetPos
()
polargraph/mouse.go:18
↓ 1 callers
Method
GetRightButton
()
polargraph/mouse.go:20
↓ 1 callers
Function
InteractiveMoveSpool
Used to manually adjust length of each step
polargraph/driver.go:231
↓ 1 callers
Method
Intersection
Calculates the intersection between two line segments, based on http://stackoverflow.com/questions/563198/how-do-you-detect-where-two-line-segments-in
polargraph/coordinate.go:256
↓ 1 callers
Method
IsNaN
Returns true if either value is NaN
polargraph/coordinate.go:79
↓ 1 callers
Method
IsRelative
True if the given PathCommand is relative
polargraph/svg.go:73
↓ 1 callers
Method
Len
()
polargraph/coordinate.go:251
↓ 1 callers
Function
NewCoordinateRingBuffer
Create a new buffer with the given capacity
polargraph/interpolater.go:314
↓ 1 callers
Function
ParseGcode
read all of the fileData lines, generating a GcodeData object
polargraph/gcode.go:63
↓ 1 callers
Function
ParseGcodeFile
read a file and parse its Gcode
polargraph/gcode.go:40
↓ 1 callers
Function
ParseSvgCircle
read svg xml data
polargraph/svg.go:305
↓ 1 callers
Function
ParseSvgFile
read a file
polargraph/svg.go:232
↓ 1 callers
Function
ParseSvgFileCircle
read a file
polargraph/svg.go:294
↓ 1 callers
Function
PerformMouseTracking
Do mouse tracking, must open up serial port directly in order to send steps in realtime as requested
polargraph/driver.go:280
↓ 1 callers
Method
ReadCommand
Move to next token
polargraph/svg.go:176
↓ 1 callers
Function
RemoveExtraPenUpMovements
Remove unnecessary pen up movements, since PenUp for a line segment is determined by the PenUp of the end of the line, need to do special remember pre
gocupi.go:500
↓ 1 callers
Method
Start
(string)
polargraph/mouse.go:16
↓ 1 callers
Function
WriteStepsToChart
Writes step data and position to a graph
polargraph/chart.go:11
↓ 1 callers
Function
WriteStepsToFile
Sends the given stepData to a file
polargraph/driver.go:124
↓ 1 callers
Function
copyFile
from https://gist.github.com/elazarl/5507969
polargraph/settings.go:129
↓ 1 callers
Function
drawLine
Draw a line, from http://41j.com/blog/2012/09/bresenhams-line-drawing-algorithm-implemetations-in-go-and-c/
polargraph/image.go:70
↓ 1 callers
Function
hilbert_d2xy
convert d to (x,y)
polargraph/generator.go:155
↓ 1 callers
Function
hilbert_rot
rotate/flip a quadrant appropriately
polargraph/generator.go:171
↓ 1 callers
Function
printCharacter
Print a single character
polargraph/text.go:28
↓ 1 callers
Function
promptForSettingsPosition
Ask user for X Y location and then update settings
polargraph/driver.go:383
↓ 1 callers
Method
readDriver
Runs an infinite loop reading from the event file
polargraph/mouse.go:61
↓ 1 callers
Function
updateSettingsPosition
Update settings with the current position of the pen
polargraph/driver.go:371
Method
Ceil
ApplRightDist math.Ceil to each value
polargraph/coordinate.go:139
Method
Clamp
Clamp the values of LeftDist,RightDist to the given maLeftDist/min
polargraph/coordinate.go:144
next →
1–100 of 181, ranked by callers