We present an algorithm for generating images of molecules represented as a set of intersecting opaque spheres. Both perspective and shadows are computed to provide realistic visual cues. Compared to existing programs for generating similar images, our algorithm is both more accurate and several times faster. We present in detail the mathematics used in picture generation, along with examples of the computed images.