Giter Club home page Giter Club logo

Comments (1)

sutaburosu avatar sutaburosu commented on May 28, 2024 1

@urish I'm a total noob to Node, Typescript, SVG, graphic design and webdev in general. I learned a huge amount from your tutorial videos and yesterday's commit adding the Mega. There's no rush for this, right? I think I can do this, but it will take me a while. I may need help later getting the reset button to work.

My only progress so far is this pattern for unsoldered pins. Good enough?
image

import { svg } from 'lit-element';

export const pinsPlatedThroughHolePattern = svg`
  <defs>
    <filter id="solderPlate" style="color-interpolation-filters:sRGB;">
      <feTurbulence result="r0" type="fractalNoise" baseFrequency="1" numOctaves="3"/>
      <feComposite  result="r1" in="r0" in2="SourceGraphic" operator="arithmetic"
        k1="0.6" k2="0.6" k3="1.2" k4="0.25"/>
      <feBlend      result="r2" in="r1" in2="SourceGraphic" mode="luminosity"/>
      <feComposite  result="r3" in="r2" in2="SourceGraphic" operator="in"/>
    </filter>
  </defs>
  <pattern id="pins-pth" width="2.54" height="2.54" patternUnits="userSpaceOnUse">
    <circle r="0.750" cx="1.27" cy="1.27" style="fill:#323232; filter:url(#solderPlate)"/>
    <circle r="0.375" cx="1.27" cy="1.27" style="fill:#ffffff"/>
  </pattern>
  <pattern id="pins-gold-pth" width="2.54" height="2.54" patternUnits="userSpaceOnUse">
    <circle r="0.750" cx="1.27" cy="1.27" style="fill:#484800; filter:url(#solderPlate)"/>
    <circle r="0.375" cx="1.27" cy="1.27" style="fill:#ffffff"/>
  </pattern>
`;

from wokwi-elements.

Related Issues (20)

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.