Module generativepy.drawing3d

Functions

def make_3dimage(outfile, draw, width, height, background=<generativepy.color.Color object>, channels=3)

Create a PNG file using moderngl :param outfile: Name of output file :param draw: the draw function :param width: width in pixels, int :param height: height in pixels, int :param background: background colour :param channels: 3 for rgb, 4 for rgba :return:

def make_3dimage_frame(draw, width, height, background=<generativepy.color.Color object>, channels=3)

Create a numpy frame file using moderngl :param draw: the draw function :param width: width in pixels, int :param height: height in pixels, int :param background: background colour :param channels: 3 for rgb, 4 for rgba :return:

def make_3dimage_frames(draw, width, height, count, background=<generativepy.color.Color object>, channels=3)

Create a sequence of numpy frame file using moderngl :param draw: the draw function :param width: width in pixels, int :param height: height in pixels, int :param count: number of frames to create :param background: background colour :param channels: 3 for rgb, 4 for rgba :return:

def make_3dimages(outfile, draw, width, height, background=<generativepy.color.Color object>, channels=3)

Create a sequence of PNG files using moderngl :param outfile: Name of output file :param draw: the draw function :param width: width in pixels, int :param height: height in pixels, int :param count: number of frames to create :param background: background colour :param channels: 3 for rgb, 4 for rgba :return: