tiletypeimage

package
v0.0.0-...-667d129 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package tiletypeimage provides tile type image builder used for building a small previews of tiles.

Index

Constants

View Source
const (

	// ImageW - max width of an image
	ImageW = floorW + wallW
	// ImageH is a max height of image
	ImageH = floorH + wallH
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder allows to build a small tile preview depending on its type

func TileTypeImage

func TileTypeImage(canvas *giu.Canvas, pos image.Point) *Builder

TileTypeImage creates a new builder

func (*Builder) Corner

func (b *Builder) Corner() *Builder

Corner draws a "lower-right" corner

func (*Builder) EastWall

func (b *Builder) EastWall() *Builder

EastWall adds an easter wall

func (*Builder) Floor

func (b *Builder) Floor() *Builder

Floor adds a floor preview

func (*Builder) NorthDoor

func (b *Builder) NorthDoor() *Builder

NorthDoor builds a wall with a doors on north edge

func (*Builder) NorthWall

func (b *Builder) NorthWall(filling bool) *Builder

NorthWall adds a north (right) wall

func (*Builder) SouthWall

func (b *Builder) SouthWall() *Builder

SouthWall adds a wall on a south

func (*Builder) WestDoor

func (b *Builder) WestDoor() *Builder

WestDoor builds wall with a doors on a west edge

func (*Builder) WestWall

func (b *Builder) WestWall(filling bool) *Builder

WestWall adds a west wall

Jump to

Keyboard shortcuts

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