✨ Interactive SVG Generator

SVG Visualiser App Help Guide

The Geometria SVG Visualiser App is an interactive design tool that allows users to generate, customise, preview, and export SVG shapes in real time. Users can select geometric shapes, apply colours, modify strokes, scale objects, rotate designs, and instantly copy generated SVG code.

SVG Visualiser App

Core Features

Shape Selection

Users can choose between multiple SVG shapes including circles, squares, triangles, pentagons, hexagons, octagons, stars, hearts, and arrows.

Live SVG Rendering

Every change instantly updates the SVG preview area in real time using JavaScript and dynamic SVG element generation.

Custom Fill Colours

The app includes a colour picker for applying custom fill colours to any shape. Hex colour values are also displayed live.

Stroke Controls

Users can change stroke colours and stroke width using modern slider controls for precise SVG styling.

Transform Controls

Shapes can be scaled and rotated dynamically using SVG transform attributes.

SVG Code Export

The generated SVG markup is displayed inside a textarea and can be copied directly to the clipboard using the built-in copy button.

🛠

How The App Works

1

Application Initialisation

When the page loads, JavaScript waits for the DOMContentLoaded event. The application then retrieves all interface elements such as buttons, sliders, colour pickers, and the SVG preview container.

2

Shape Creation

Clicking a shape button updates the current selected shape. The application dynamically creates SVG elements using document.createElementNS().

3

Dynamic Styling

Fill colour, stroke colour, stroke width, scaling, and rotation are applied directly to the generated SVG element through SVG attributes.

4

Polygon Generation

Complex polygon shapes such as triangles, pentagons, hexagons, and octagons are generated mathematically using trigonometry and coordinate calculations.

5

SVG Code Output

The app serialises the generated SVG using XMLSerializer(), formats the code, and displays it inside the output textarea.

6

Clipboard Copy Feature

The copy button selects the generated SVG code and copies it to the user's clipboard for use in websites, projects, or design systems.

🎨

User Interface Breakdown

Header Area

Displays the application logo, title, and navigation link back to the main menu.

Control Panel

Contains all interactive controls including shape selectors, colour pickers, sliders, and transformation settings.

Preview Stage

Shows the live SVG output in a scalable responsive preview container.

Code Output Section

Displays generated SVG markup and includes a button for clipboard copying.

💡

Example Generated SVG

The application automatically creates clean SVG markup similar to the example below:

SVG Output Example
<svg xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 200 200"
width="200"
height="200">

    <circle
        cx="100"
        cy="100"
        r="80"
        fill="#4a80f0"
        stroke="#ffffff"
        stroke-width="2"
    />

</svg>
🚀

Usage Tips

Design SVG Icons

Quickly generate simple vector icons and export the SVG code directly into websites or apps.

Prototype Shapes

Use transformation controls to experiment with rotations and scaling before final production.

Learn SVG Basics

The live code output helps beginners understand how SVG elements and attributes work together.