pygfx.renderers.SvgRenderer

class pygfx.renderers.SvgRenderer(width, height, filename)

Bases: Renderer

Turns scenes into SVG images.

Parameters:
  • width (int) – The width of the resulting image.

  • height (int) – The height of the resulting image.

  • filename (str) – The name of the location to which to write the image.

Examples

Line Drawing

Line Drawing
render(scene: WorldObject, camera: Camera)

Render the scene to a file.

get_render_list(scene: WorldObject, proj_screen_matrix)

Given a scene object, get a list of objects to render.