pygfx.renderers.SvgRenderer¶
- class pygfx.renderers.SvgRenderer(width, height, filename)¶
Bases:
RendererTurns 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
- 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.