Documentation ¶
Index ¶
- Constants
- func DefaultRequest() *config.Request
- func ReadInfoStream(r io.Reader) <-chan InfoPkt
- func Recolor(desc *Info, gray image.Image) *image.NRGBA
- func Render(info *Info) (*image.NRGBA, error)
- func ToJSON(desc *Info) ([]byte, error)
- func WriteInfo(w io.Writer, desc *Info) error
- func WriteZoom(w io.Writer, z *Zoom) error
- type BigInfo
- type Info
- type InfoPkt
- type NativeInfo
- type PaletteKind
- type Renderer
- type SerialBigInfo
- type UserInfo
- type UserZoom
- type Zoom
- type ZoomTarget
Constants ¶
View Source
const ( Grayscale = PaletteKind(iota) Redscale Pretty )
View Source
const DefaultBase int = 10
Default base for newly parsed numbers
View Source
const DefaultBufferSize uint = 256
View Source
const DefaultCollapse uint = 4
View Source
const DefaultDivergeLimit float64 = 4.0
View Source
const DefaultHighPrec uint = 500
Default high precision for newly created big floats
View Source
const DefaultImageHeight uint = 600
View Source
const DefaultImageWidth uint = 600
View Source
const DefaultIterations uint8 = 255
View Source
const DefaultPrecision uint = 53
Default precision is for native arithmetic
View Source
const DefaultRegionSamples uint = 12
Default sample size for region glitch-correction
View Source
const DefaultTinyImageArea uint = 40000
What we consider to be a tiny image area, by default
View Source
const MandelbrotMax complex128 = 0.59 + 1.13i
Maximum bounds of Mandelbrot set
View Source
const MandelbrotMin complex128 = -2.01 - 1.11i
Minimum bounds of Mandelbrot set
Variables ¶
This section is empty.
Functions ¶
func DefaultRequest ¶
func ReadInfoStream ¶
Types ¶
type Info ¶
type Info struct { NativeInfo BigInfo }
Info completely describes the render process
func Configure ¶
InitializeContext examines the description, chooses a renderer, numerical system and palette.
func Unfriendly ¶
func (*Info) GenRequest ¶
Generate a user request that corresponts to the info numerics
func (*Info) IsAccurate ¶
IsAccurate returns True if the bignums used internally by info are all accurate.
type NativeInfo ¶
type NativeInfo struct { UserRequest config.Request // Describe the render strategy in use RenderStrategy config.RenderMode // Describe the numerics system in use NumericsStrategy config.NumericsMode PaletteType PaletteKind Precision uint }
type PaletteKind ¶
type PaletteKind uint8
type Renderer ¶
func MakeRenderer ¶
type SerialBigInfo ¶
type UserInfo ¶
type UserInfo struct { NativeInfo SerialBigInfo }
UserInfo is a variant of Info that can be easily serialized
type UserZoom ¶
type UserZoom struct { Prev UserInfo ZoomTarget }
type ZoomTarget ¶
type ZoomTarget struct {
config.ZoomTarget
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.