Pink 0.9

drawtorus.c File Reference

generates a binary torus More...


Detailed Description

generates a binary torus

Usage: drawtorus {in.pgm|null} r1 r2 xc yc zc out.pgm

Description: Draws a binary torus in the image in.pgm. The parameters r1, r2 specify respectively the big and the small radius of the torus. The parameters xc, yc, zc specify the center of the torus. If the first parameter is "null", then an image with the appropriate size is created.

Types supported: byte 3d

Category: draw

Author:
Michel Couprie