Versions in this module Expand all Collapse all v1 v1.1.0 Feb 24, 2023 v1.0.0 May 31, 2022 Changes in this version + type Option = func(r *Renderer) + func Opt2BBColor(getColor func(idx int) color.Color) Option + func Opt2Cam(bb sdf.Box2) Option + func Opt2EvalRange(min, max float64) Option + func Opt2EvalScanCells(cells sdf.V2i) Option + func Opt3BBColor(getColor func(idx int) color.Color) Option + func Opt3Cam(camCenter sdf.V3, pitch, yaw, dist float64) Option + func Opt3CamFov(fov float64) Option + func Opt3Colors(surface, background, error color.RGBA) Option + func Opt3LightDir(lightDir sdf.V3) Option + func Opt3Mesh(meshGenerator render.Render3, meshCells int, smoothNormalsRadians float64) Option + func Opt3NormalEps(normalEps float64) Option + func Opt3RayConfig(scaleAndSigmoid, stepScale, epsilon float64, maxSteps int) Option + func Opt3SwapYAndZ() Option + func OptMBackoff(backOff backoff.BackOff) Option + func OptMColorMode(colorMode int) Option + func OptMPartialRenderEvery(duration time.Duration) Option + func OptMResInv(resInv int) Option + func OptMRunCommand(runCmd func() *exec.Cmd) Option + func OptMSmoothCamera(smoothCamera bool) Option + func OptMWatchFiles(filePaths []string) Option + func OptMZoom(zoom float64) Option + type Renderer struct + func NewRenderer(anySDF interface{}, opts ...Option) *Renderer + func (r *Renderer) Run() error + type Watcher struct — js/wasm + Errors chan error + Events chan fsEvent + func (w *Watcher) Add(name string) error + func (w *Watcher) Close() error + func (w *Watcher) Remove(name string) error