In the same way, This chapter provides examples to draw a 3D cube and apply colours to it and attach image to it.īelow given is the program to draw a 3d cube and apply colours to it. Now in this chapter you can learn how to a 3d cube, how to rotate it, how to attach an image on it. In the previous chapters we have seen how to draw 3d triangle and rotate it.