Giter VIP home page Giter VIP logo

Comments (3)

bleeptrack avatar bleeptrack commented on August 20, 2024

Definitly! Atm I an using fancy canvas functions to get the colors right. I wanted this to do on the svg, but paper.js needs closed shapes for masks. And the lines are.. well... just lines with a width. So I can not color the svg itself.
Work around is to do this by hand in inkscape.

from 35c3-circuit-generator.

rugk avatar rugk commented on August 20, 2024

Work around is to do this by hand in inkscape.

Yep had to do so, too.
It's kinda hard, because you first have to convert & merge everything into one path. And these "black dots" (black circled filled with black fill color), where there are splits, are also hard, because you cannot just convert "the curve into a path", because then they get transparent in the middle… I actually had to duplicate them and convert one of each of these "object into path", merge these versions together, and then have solid-filled-dots. Only afterwards, I could merge everything and apply the gradient…

from 35c3-circuit-generator.

bleeptrack avatar bleeptrack commented on August 20, 2024

Yeah, I see :/
I had an very early version of the generator where I only drew closed shapes (rectangles in a certain width/height) instead of lines. But the union operation on the paths glitched in a really weird way, so I stayed with lines. Sadly paper.js has no "lines to paths" function yet.

from 35c3-circuit-generator.

Related Issues (7)

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.