protected BlockPalette( [NotNull] string name, int layers )
{
if( name == null )
throw new ArgumentNullException( "name" );
Name = name;
Layers = layers;
TransparencyThreshold = TransparencyThresholdDefault;
transparent = new Block[layers];
for( int i = 0; i < layers; i++ ) {
transparent[i] = Block.Undefined;
}
}