🌍 Public
Viewing a saved revision (read-only)
665482a0072b4d419266c793648dbe6a
Fork of Random triangles
This example demonstrates how an SVG document can embed a raster image. It shows a Buddha figure positioned within a 1000 by 1000 pixel canvas. The code creates an SVG `<image>` element programmatically using the `document.createElementNS` method, setting its source to `buddha.png` and its dimensions to 500 by 500 pixels. The image is then appended to the SVG container, resulting in a static composition that mixes vector and bitmap graphics.
AI-generated descriptionDemonstration of SVG shapes.