Documentation ¶
Index ¶
- func BlendColor(bg, fg *color.RGBA, bf float64) *color.RGBA
- func ColorAdjust(c *color.RGBA, value int) *color.RGBA
- func DrawIsoCube(img *image.RGBA, cube_len, x_offset, y_offset int, c1, c2, c3 color.Color) error
- func GetIsoCenterCubeOffset(size *types.Pos, cube_len int) (int, int)
- func GetIsoCubePosition(center_x, center_y, cube_len int, pos *types.Pos) (int, int)
- func GetIsoNodeOrder(p *types.Pos) int
- func GetIsometricImageSize(size *types.Pos, cube_len int) (int, int)
- func RenderIsometric(na types.NodeAccessor, cr types.ColorResolver, from, to *types.Pos, ...) (image.Image, error)
- func RenderMap(na types.NodeAccessor, cr types.ColorResolver, from, to *types.Pos, ...) (*image.NRGBA, error)
- type IsoRenderOpts
- type MapRenderOpts
- type NodeWithColor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrawIsoCube ¶ added in v1.0.21
func GetIsoCenterCubeOffset ¶ added in v1.0.21
func GetIsoCubePosition ¶ added in v1.0.21
func GetIsoNodeOrder ¶ added in v1.0.21
func GetIsometricImageSize ¶ added in v1.0.21
func RenderIsometric ¶ added in v1.0.21
func RenderIsometric(na types.NodeAccessor, cr types.ColorResolver, from, to *types.Pos, opts *IsoRenderOpts) (image.Image, error)
func RenderMap ¶ added in v1.0.21
func RenderMap(na types.NodeAccessor, cr types.ColorResolver, from, to *types.Pos, opts *MapRenderOpts) (*image.NRGBA, error)
Types ¶
type IsoRenderOpts ¶ added in v1.0.21
func NewDefaultIsoRenderOpts ¶ added in v1.0.21
func NewDefaultIsoRenderOpts() *IsoRenderOpts
type MapRenderOpts ¶ added in v1.0.21
type MapRenderOpts struct { }
func NewDefaultMapRenderOpts ¶ added in v1.0.21
func NewDefaultMapRenderOpts() *MapRenderOpts
type NodeWithColor ¶ added in v1.0.21
func Probe ¶ added in v1.0.21
func Probe(min, max, pos, ipos *types.Pos, na types.NodeAccessor, cr types.ColorResolver, skip_alpha bool) ([]*NodeWithColor, error)
Click to show internal directories.
Click to hide internal directories.