Giter VIP home page Giter VIP logo

svg-generator-project's Introduction

SVG Generator

This project is the starting point for creating algorithmic SVGs to be plotted on an 8 1/2 x 11 surface. Click the Use this template button on GitHub to start.

From there, you can download your new project to your local machine, install the necessary file, and start the project.

npm install
npm run dev

Where to write your code

Look for the src file in the starter-svg.js directory. This is where most of your code will be written. You can copy this to a new file or just write over the contents of the file itself. I've left in a bunch of other starter files I've created that might be of help to you, also.

In the main.js file, you can change which file the project will reference. Look for the following import statement and update the filename if you've created a new Javascript file for your creation.

import { svgGenerator } from './starter-svg.js';

You will probably also want to update your project name using the projectTitle variable.

const projectTitle = "Starter SVG";

References

George Francis has published a wonderful Generative Utilities set of functions that I use. I've updated a couple of the functions I use in my projects. If you want to check out my updates, change the following line in the package.json file. (I've got a pull request in for these updates, but they may not align with what George wants to do with his repo.)

From:

"@georgedoescode/generative-utils": "^1.0.38",

To:

"@georgedoescode/generative-utils": "github:johnfmorton/generative-utils#johnfmorton-patch-for-points-in-path",

This project uses SVG.js to make the SVG creation easier.

The settings panel uses Shoelace web components.

I hope you find it useful. If you have questions, send me a public message on Threads. Thanks! -John

svg-generator-project's People

Contributors

johnfmorton avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.