Fork of Random triangles
✓ Published0🌍 Public
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.
MIT Licensed