// fill right side of cube
gc.setBackground(device.getSystemColor(SWT.COLOR_GRAY));
gc.fillPolygon(new int[] { size, 0, 4 * size / 3, -size / 2, 4 * size / 3, size / 2, size, size });
transform.dispose();
// ----- pyramid -----
transform = new Transform(device);
transform.translate(width / 2 + size / 2, height / 4 + size + upDownValue);