Vector editor for Snap!

This is not a feature request!

It would be nice to have a vector editor for Snap!, and I was thinking of making one myself. I have a few questions:

  1. How hard would it be?
  2. If I implemented one and made a PR, would it be accepted?
  3. Does anyone have any ideas how I could do this?
  1. Pretty hard, especially if you want to be able to edit a vector graphic that was imported from other software. Less hard, if you want only to be able to create vector graphics and edit the ones you made.

  2. Jens is generally quite unenthusiastic about unsolicited PRs. It would have to be wonderful, and super well coded. There is a readme file in the repo about making contributions.

  3. That's too broad a question to be answerable. I guess if it were me, I'd start by reading the code of the existing Snap! vector editor.

Honestly, I forgot there was a vector editor already. But I was thinking something more like Scratch's than what we have now.

Okay, read their code, too!

Where is that though?

The source code for the scratch paint editor (includes both vector and bitmap) can be found on github here.

I meant the Snap! one

Oh, heh, woops. Anyway, I'm pretty sure this is it.

I tried looking in there but didn't find anything. Would you perhaps know where the definition for SVG_Costume is?

Oh, actually sketch.js contains the vector editor.

As for the SVG_Costume class definition, it's defined in objects.js.