MCPcopy Create free account

hub / github.com/brandonagr/gocupi / functions

Functions181 in github.com/brandonagr/gocupi

↓ 47 callersMethodScaled
Scales the Coordinate by the specified factor
polargraph/coordinate.go:43
↓ 43 callersMethodMinus
Return the vector from source to dest
polargraph/coordinate.go:38
↓ 41 callersMethodAdd
Add two coordinates together
polargraph/coordinate.go:33
↓ 28 callersFunctionaverage
Returns an average of R,G,B from 0 to 1
polargraph/image.go:364
↓ 19 callersFunctionPrintCommandHelp
output the help for a specific command
gocupi.go:546
↓ 15 callersFunctionGetArgsAsFloats
Parse a series of numbers as floats
gocupi.go:523
↓ 13 callersFunctionsampleImageAt
Test the value at a given point and return a single interpolated value
polargraph/image.go:310
↓ 11 callersFunctionassertAreClose
assert that the two values are equal
polargraph/image_test.go:43
↓ 10 callersMethodClose
()
polargraph/mouse.go:17
↓ 10 callersMethodIntersection
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 callersMethodToCoord
Convert the given polarCoordinate from polar to X,Y in the given PolarSystem
polargraph/coordinate.go:180
↓ 8 callersMethodLen
Calculates length of vector
polargraph/coordinate.go:28
↓ 7 callersMethodCeil
Apply math.Ceil to each value
polargraph/coordinate.go:53
↓ 7 callersMethodLen
Amount of data in the buffer
polargraph/interpolater.go:357
↓ 7 callersMethodWrite
Write settings to file
polargraph/settings.go:149
↓ 6 callersFunctionDrawMeander
* * 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 callersMethodParse
Parse the data
polargraph/svg.go:146
↓ 6 callersFunctionPolarSystemFromSettings
Create a PolarSystem from the settings object
polargraph/coordinate.go:100
↓ 6 callersMethodToPolar
Convert the given coordinate from X,Y to polar in the given PolarSystem
polargraph/coordinate.go:149
↓ 5 callersMethodCap
Capacity of the buffer
polargraph/interpolater.go:362
↓ 5 callersMethodDotProduct
Dot product between two vectors
polargraph/coordinate.go:74
↓ 5 callersMethodExtents
Calculate the min and max coordinate in the given slice
polargraph/coordinate.go:278
↓ 5 callersFunctionNewParser
Create new parser
polargraph/svg.go:126
↓ 5 callersMethodNormalized
Normalize the vector
polargraph/coordinate.go:68
↓ 5 callersMethodRead
Read settings from file, setting the global variable
polargraph/settings.go:87
↓ 4 callersMethodEquals
Test if the two coordinates are equal within a constant epsilon
polargraph/coordinate.go:84
↓ 4 callersFunctionPrintGenericHelp
output help summary
gocupi.go:558
↓ 4 callersFunctionassertAreEqual
assert that the two slices are equal
polargraph/svg_test.go:83
↓ 3 callersFunctionLoadImage
Load image data
polargraph/image.go:136
↓ 3 callersMethodReadCoord
Read two strings as a pair of doubles
polargraph/svg.go:202
↓ 2 callersMethodAdd
Add two coordinates together
polargraph/coordinate.go:124
↓ 2 callersMethodCalculateDerivedFields
setup derived fields
polargraph/settings.go:118
↓ 2 callersMethodClamp
Clamp the values of X,Y to the given max/min
polargraph/coordinate.go:63
↓ 2 callersMethodDequeue
Remove a coordinate from the beginning of the buffer
polargraph/interpolater.go:340
↓ 2 callersMethodEnqueue
Add a coordinate to the end of the buffer
polargraph/interpolater.go:324
↓ 2 callersFunctionGenerateParametric
Generate spirograph
polargraph/generator.go:13
↓ 2 callersFunctionGenerateRaster
Draw image by generate a series of arcs, where darknes of a pixel is a movement along the arc
polargraph/generator.go:831
↓ 2 callersFunctionMoveSpool
Move a specific spool a given distance
polargraph/driver.go:250
↓ 2 callersFunctionParseCommand
Convert string to command, returns NotAValidCommand if not valid
polargraph/svg.go:84
↓ 2 callersFunctionParseSvg
read svg xml data
polargraph/svg.go:242
↓ 2 callersMethodPeekHasMoreArguments
Return if the next token is a command or not
polargraph/svg.go:193
↓ 2 callersMethodPosition
(slice float64)
polargraph/interpolater.go:14
↓ 2 callersMethodScaledBoth
Scale each axis seperately
polargraph/coordinate.go:48
↓ 2 callersMethodSetup
(origin, dest, nextDest Coordinate)
polargraph/interpolater.go:12
↓ 2 callersMethodSlices
()
polargraph/interpolater.go:13
↓ 2 callersMethodString
PathCommand ToString
polargraph/svg.go:54
↓ 2 callersFunctionWriteStepsToSerial
Sends the given stepData to the stepper driver
polargraph/driver.go:148
↓ 2 callersFunctionclamp
Clamp a bound to inside the given bounds
polargraph/image.go:346
↓ 2 callersFunctiondrawPixel
Draw a pixel at the given location
polargraph/generator.go:882
↓ 1 callersFunctionCountSteps
Count steps
polargraph/driver.go:104
↓ 1 callersFunctionCreateAndStartMouseReader
Return an implementation of MouseReader specific to the current platform
polargraph/mouse.go:34
↓ 1 callersFunctionDrawToImage
Draw coordinates to image
polargraph/image.go:16
↓ 1 callersFunctionFlipPlotCoords
(flipX, flipY bool, coords <-chan Coordinate, flippedCoords chan<- Coordinate)
gocupi.go:486
↓ 1 callersMethodFloor
Apply math.Floor to each value
polargraph/coordinate.go:58
↓ 1 callersFunctionGaussianImage
Return a new image that is the result of applying a 3x3 gaussion blur to the image
polargraph/image.go:228
↓ 1 callersFunctionGenerateArc
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 callersFunctionGenerateBouncingLine
Generate a line that bounces off the edges of the grid
polargraph/generator.go:906
↓ 1 callersFunctionGenerateCrossHatch
Draw image by generate a series of arcs, where darknes of a pixel is a movement along the arc
polargraph/generator.go:630
↓ 1 callersFunctionGenerateGcodePath
Given GCodeData, returns all of the
polargraph/gcode.go:119
↓ 1 callersFunctionGenerateGrid
Generate parabolic curve out of a bunch of straight lines
polargraph/generator.go:251
↓ 1 callersFunctionGenerateHilbertCurve
Generate a Hilbert curve, based on code from http://en.wikipedia.org/wiki/Hilbert_curve
polargraph/generator.go:135
↓ 1 callersFunctionGenerateMeander
* * 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 callersFunctionGenerateParabolic
Generate parabolic curve out of a bunch of straight lines
polargraph/generator.go:197
↓ 1 callersFunctionGenerateSlidingCircle
Generate a circle that slides along a given axis
polargraph/generator.go:97
↓ 1 callersFunctionGenerateSpiral
Generate a spiral
polargraph/generator.go:57
↓ 1 callersFunctionGenerateSteps
Takes in coordinates and outputs stepData
polargraph/driver.go:27
↓ 1 callersFunctionGenerateSvgBoxPath
Send svg path points to channel
polargraph/svg.go:434
↓ 1 callersFunctionGenerateSvgCenterPath
Send svg path points to channel
polargraph/svg.go:393
↓ 1 callersFunctionGenerateSvgTopPath
Send svg path points to channel
polargraph/svg.go:469
↓ 1 callersFunctionGenerateTextPath
Pring this text
polargraph/text.go:10
↓ 1 callersMethodGetLeftButton
()
polargraph/mouse.go:19
↓ 1 callersMethodGetPos
()
polargraph/mouse.go:18
↓ 1 callersMethodGetRightButton
()
polargraph/mouse.go:20
↓ 1 callersFunctionInteractiveMoveSpool
Used to manually adjust length of each step
polargraph/driver.go:231
↓ 1 callersMethodIntersection
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 callersMethodIsNaN
Returns true if either value is NaN
polargraph/coordinate.go:79
↓ 1 callersMethodIsRelative
True if the given PathCommand is relative
polargraph/svg.go:73
↓ 1 callersMethodLen
()
polargraph/coordinate.go:251
↓ 1 callersFunctionNewCoordinateRingBuffer
Create a new buffer with the given capacity
polargraph/interpolater.go:314
↓ 1 callersFunctionParseGcode
read all of the fileData lines, generating a GcodeData object
polargraph/gcode.go:63
↓ 1 callersFunctionParseGcodeFile
read a file and parse its Gcode
polargraph/gcode.go:40
↓ 1 callersFunctionParseSvgCircle
read svg xml data
polargraph/svg.go:305
↓ 1 callersFunctionParseSvgFile
read a file
polargraph/svg.go:232
↓ 1 callersFunctionParseSvgFileCircle
read a file
polargraph/svg.go:294
↓ 1 callersFunctionPerformMouseTracking
Do mouse tracking, must open up serial port directly in order to send steps in realtime as requested
polargraph/driver.go:280
↓ 1 callersMethodReadCommand
Move to next token
polargraph/svg.go:176
↓ 1 callersFunctionRemoveExtraPenUpMovements
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 callersMethodStart
(string)
polargraph/mouse.go:16
↓ 1 callersFunctionWriteStepsToChart
Writes step data and position to a graph
polargraph/chart.go:11
↓ 1 callersFunctionWriteStepsToFile
Sends the given stepData to a file
polargraph/driver.go:124
↓ 1 callersFunctioncopyFile
from https://gist.github.com/elazarl/5507969
polargraph/settings.go:129
↓ 1 callersFunctiondrawLine
Draw a line, from http://41j.com/blog/2012/09/bresenhams-line-drawing-algorithm-implemetations-in-go-and-c/
polargraph/image.go:70
↓ 1 callersFunctionhilbert_d2xy
convert d to (x,y)
polargraph/generator.go:155
↓ 1 callersFunctionhilbert_rot
rotate/flip a quadrant appropriately
polargraph/generator.go:171
↓ 1 callersFunctionprintCharacter
Print a single character
polargraph/text.go:28
↓ 1 callersFunctionpromptForSettingsPosition
Ask user for X Y location and then update settings
polargraph/driver.go:383
↓ 1 callersMethodreadDriver
Runs an infinite loop reading from the event file
polargraph/mouse.go:61
↓ 1 callersFunctionupdateSettingsPosition
Update settings with the current position of the pen
polargraph/driver.go:371
MethodCeil
ApplRightDist math.Ceil to each value
polargraph/coordinate.go:139
MethodClamp
Clamp the values of LeftDist,RightDist to the given maLeftDist/min
polargraph/coordinate.go:144
next →1–100 of 181, ranked by callers