Documentation
¶
Index ¶
- Constants
- func ConstructObjectsFromConfig() (map[string]interface{}, error)
- func DrawRegularPolygon(ctx *gg.Context, n int, x, y, r, rotation float64)
- type Config
- type Display
- type DisplayOptions
- type Memory
- type MemoryOptions
- type Message
- type MessageHijacker
- type MessageOptions
- type ObjectConfig
- type ObjectType
Constants ¶
View Source
const ( ObjectMessage = ObjectType("message") ObjectDisplay = ObjectType("display") ObjectMemory = ObjectType("memory") )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Objects []ObjectConfig
}
type Display ¶
type Display struct { Width int Height int Scale float64 Output string FrameCount int PreviousFrame image.Image SaveCurrentFrame func(img image.Image, display *Display) }
func NewDisplay ¶
func NewDisplay(config ObjectConfig) (*Display, error)
func (*Display) DrawFlush ¶
func (m *Display) DrawFlush(buffer []runtime.DrawStatement)
type DisplayOptions ¶
type MemoryOptions ¶
type MemoryOptions struct {
Size int64
}
type Message ¶
func NewMessage ¶
func NewMessage(config ObjectConfig) (*Message, error)
func (Message) PrintFlush ¶
type MessageHijacker ¶
type MessageOptions ¶
type MessageOptions struct {
Output string
}
type ObjectConfig ¶
type ObjectConfig struct { Type ObjectType Name string Options json.RawMessage }
type ObjectType ¶
type ObjectType string
Click to show internal directories.
Click to hide internal directories.