misc

package
v0.0.0-...-5eff40d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenFile

func OpenFile() *os.File

func ProgressBar

func ProgressBar(ch <-chan int, rows int)

func WriteFile

func WriteFile(f *os.File, img *image.NRGBA)

Types

type Config

type Config struct {
	Dimensions DimensionsConfig `json:"dimensions"`
	World      []ObjectConfig   `json:"world"`
}

func GetConfig

func GetConfig() Config

type DimensionsConfig

type DimensionsConfig struct {
	Height   int `json:"height"`
	Width    int `json:"width"`
	Aliasing int `json:"aliasing"`
}

type ObjectConfig

type ObjectConfig struct {
	Center   []float64      `json:"center"`
	Radius   float64        `json:"radius"`
	Material materialConfig `json:"material"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL