From cf4f6d7ece2b7ac4d0a03ae0e98dee25a852cf19 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Sun, 13 Mar 2011 16:29:42 -1000 Subject: [PATCH] 0x255 isn't a number! --- materials.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/materials.py b/materials.py index a691bd1..af6983f 100644 --- a/materials.py +++ b/materials.py @@ -65,7 +65,7 @@ class MCMaterials(object): self.lightAbsorption = zeros(256, dtype='uint8') self.lightAbsorption[:] = self.defaultOpacity self.flatColors = zeros((256, 16, 4), dtype='uint8') - self.flatColors[:] = (0xc9, 0x77, 0xf0, 0x255) + self.flatColors[:] = (0xc9, 0x77, 0xf0, 0xff) #flat colors borrowed from c10t. https://github.com/udoprog/c10t defaultColors = array([