package blocks import "image/color" type Option func(*Block) func Size(w, h float64) Option { return func(b *Block) { b.width, b.height = w, h } } func BackgroundColor(c color.Color) Option { return func(b *Block) { b.backgroundColor = &c } }