Documentation
¶
Index ¶
- Constants
- func CharForLandFraction(fraction float64) (byte, error)
- func RenderWorldASCII(mask *LandMask, size int, supersample int, charAspect float64, marker *Marker) (string, error)
- func RenderWorldASCIIWithOptions(mask *LandMask, size int, supersample int, charAspect float64, marker *Marker, ...) (string, error)
- func SampleLandValue(mask *LandMask, lon float64, lat float64) (float64, error)
- func StreamWorldASCIIAnimation(ctx context.Context, mask *LandMask, size int, supersample int, ...) error
- type AnimationOptions
- type AnimationStyle
- type Frame
- type LandMask
- type Marker
- type RenderOptions
- type Viewport
Constants ¶
View Source
const ( DefaultVerticalMarginRows = 2 DefaultVerticalPaddingRows = DefaultVerticalMarginRows )
View Source
const (
DefaultAnimationFPS = 2
)
Variables ¶
This section is empty.
Functions ¶
func CharForLandFraction ¶
func RenderWorldASCII ¶
func RenderWorldASCIIWithOptions ¶ added in v0.1.1
func SampleLandValue ¶
func StreamWorldASCIIAnimation ¶ added in v0.2.0
Types ¶
type AnimationOptions ¶ added in v0.2.0
type AnimationOptions struct {
FPS int
Style AnimationStyle
Duration time.Duration
}
type AnimationStyle ¶ added in v0.2.0
type AnimationStyle string
const ( AnimationStylePulseColor AnimationStyle = "pulse-color" AnimationStyleBlink AnimationStyle = "blink" )
type LandMask ¶
func LoadLandMask ¶
type RenderOptions ¶ added in v0.1.1
Click to show internal directories.
Click to hide internal directories.