Skip to main content
100%

Fork of Random triangles

✓ Published0🌍 Public
NNita
Last edited Jan 3, 2024
Created on Jan 3, 2024
Forked from Random lines

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 description

Demonstration of SVG shapes.

MIT Licensed

Similar vizzes