Skip to content

minetest-go/colormapping

Repository files navigation

Golang minetest colormappings

Coverage Status

Example

m := colormapping.NewColorMapping()
err := m.LoadDefaults()
assert.NoError(t, err)

c := m.GetColor("scifi_nodes:blacktile2", 0)
assert.NotNil(t, c)
assert.Equal(t, uint8(20), c.R)
assert.Equal(t, uint8(20), c.G)
assert.Equal(t, uint8(20), c.B)

License

Assets:

Code: MIT

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages