public void draw(LCD c) { if (state) { c.LedOn(x, y, z); } else { c.LedOff(x, y, z); } }
public void draw(LCD c) { if (state) { c.LedOn(x, y, z); } else { c.LedOff(x, y, z); } }
public void draw(LCD c) { for (int i = 0; i < sizeX * sizeY * sizeZ; ++i) { x = (byte)(x + (i / (sizeY * sizeZ))); y = (byte)(y + ((i % (sizeY * sizeZ)) / sizeY)); z = (byte)(z + (i - y * sizeY - x * sizeY * sizeZ)); if (voxels[i]) { c.LedOn(x, y, z); } else { c.LedOff(x, y, z); } } }
public void draw(LCD c) { for (int i = 0; i < sizeX * sizeY * sizeZ; ++i) { x = (byte)(x + (i / (sizeY * sizeZ))); y = (byte)(y + ((i % (sizeY * sizeZ)) / sizeY)); z = (byte)(z + (i - y * sizeY - x * sizeY * sizeZ)); if (voxels[i]) { c.LedOn(x, y, z); } else { c.LedOff(x, y, z); } } }