Index
Modules:
src/graph
,
src/graph/backendpng
,
src/graph/backendsvg
,
src/graph/color
,
src/graph/plot
,
src/graph/surface
.
API symbols
`$`:
color: `$`(c: Color): string
`[]=`:
surface: `[]=`(sur: var Surface; x, y: float; color: Color)
surface: `[]=`(sur: var Surface; i, j: int; color: Color)
`[]`:
surface: `[]`(sur: Surface; x, y: float): Color
surface: `[]`(sur: Surface; i, j: int): Color
Axis:
surface: Axis
Black:
color: Black
blend:
color: blend(orig: var Color; newc: Color)
color: blend(orig: Color; newc: Color): Color
Blue:
color: Blue
box:
surface: box(s: var Surface; ticks = false)
Color:
color: Color
color:
color: color(r, g, b, a: int = 0): Color
fillWith:
surface: fillWith(sur: var Surface; color: Color = White)
Green:
color: Green
grid:
surface: grid(s: var Surface)
HalfTBlack:
color: HalfTBlack
HalfTBlue:
color: HalfTBlue
HalfTGreen:
color: HalfTGreen
HalfTRed:
color: HalfTRed
HalftWhite:
color: HalftWhite
initAxis:
surface: initAxis(v0, v1: float; origin: float = 0.0; p0 = 0; p1: int = 288; padding = 10): Axis
initSurface:
surface: initSurface(x, y: Axis): Surface
surface: initSurface(x0, w, y0, h: int): Surface
pixelFromVal:
surface: pixelFromVal(a: Axis; val: float): int
pixelFromVal2:
surface: pixelFromVal2(a: Axis; val: float; invert: bool = false): float
plot:
plot: plot(x, y: openArray[float]; lncolor: Color = Viridis.blue; bgColor: Color = White; origin: tuple[x0, y0: float] = (0.0, 0.0); padding = 20; grid: bool = false; box: bool = true; ticks = true; size = [432, 288]): Surface
plot: plot[T: SomeFloat](sur: var Surface; x, y: openArray[T]; col: Color = Viridis.orange)
plot: plot[T: SomeFloat](sur: var Surface; x: openArray[T]; y: proc (x: T): T; col: Color = Viridis.orange)
png:
backendpng: png(sur: var Surface): PNG[string]
Purple:
color: Purple
Red:
color: Red
saveTo:
graph: saveTo(sur: var Surface; filename: string)
graph: saveTo(sur: Surface; filename: string)
saveToPng:
backendpng: saveToPng(sur: var Surface; filename: string)
saveToSvg:
backendsvg: saveToSvg(s: Surface; f: string)
Surface:
surface: Surface
svg:
backendsvg: svg(s: Surface): string
toColor:
color: toColor(v: Viridis): Color
Transparent:
color: Transparent
Viridis:
color: Viridis
White:
color: White
withAlpha:
color: withAlpha(c: Color; a: int = 0): Color
Yellow:
color: Yellow