Documentation ¶
Index ¶
- func MustParseHex(s string) colorful.Color
- type CytoEdge
- type CytoGraph
- func (cg *CytoGraph) GetID(fullName string, isNode bool) (isNew bool, id CytoID)
- func (cg *CytoGraph) LoadCallGraph(g *Graph, opts *RenderOptions) error
- func (cg *CytoGraph) ProcessEdge(edge *Edge) CytoID
- func (cg *CytoGraph) ProcessNode(node *Node) CytoID
- func (cg *CytoGraph) ProcessPkg(pkg *types.Package) CytoID
- func (cg *CytoGraph) ProcessRecv(recv *types.Var) CytoID
- func (cg *CytoGraph) WriteJson(w io.Writer) error
- type CytoID
- type CytoJsonOut
- type CytoNode
- type EdgeData
- type GradientTable
- type NodeData
- type RenderOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustParseHex ¶
func MustParseHex(s string) colorful.Color
Types ¶
type CytoGraph ¶
type CytoGraph struct { Nodes map[CytoID]*CytoNode Edges map[CytoID]*CytoEdge // contains filtered or unexported fields }
func NewCytoGraph ¶
func NewCytoGraph() *CytoGraph
func (*CytoGraph) LoadCallGraph ¶
func (cg *CytoGraph) LoadCallGraph(g *Graph, opts *RenderOptions) error
func (*CytoGraph) ProcessEdge ¶
func (*CytoGraph) ProcessNode ¶
type CytoJsonOut ¶
type GradientTable ¶
type GradientTable []struct { Col colorful.Color Pos float64 }
gradient code taken from the color library examples: https://github.com/lucasb-eyer/go-colorful/blob/master/doc/gradientgen/gradientgen.go
func (GradientTable) GetInterpolatedColorFor ¶
func (self GradientTable) GetInterpolatedColorFor(t float64) colorful.Color
type RenderOptions ¶
Click to show internal directories.
Click to hide internal directories.