Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dice ¶
type Dice struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx *canvas.Context, x, y, r, strokeWidth float64, strokeCol, valueCol, diceCol color.RGBA) *Dice
New allows you to reuse existing ctx (canvas). x, y are coordinates of the dice to be rendered at.
func NewBlank ¶
NewBlank creates blank canvas. At the end, image is rendered. w, h are canvas WxH (size of image)
func (*Dice) D6 ¶
D6 will generate D6 dice face. Numeric determines if pips are used or just numeric value (like 1, 2, ...)
func (*Dice) WriteOutput ¶
WriteOutput renders dice into actual file.
Click to show internal directories.
Click to hide internal directories.