Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

144
Views
Interpolar ancho de trazo entre puntos en Paper.js

Estoy usando Paper.js para crear algunas formas. Ha funcionado muy bien hasta ahora. Una cosa en la que estoy atascado es el ancho de trazo variable. Quiero cambiar el ancho del trazo entre diferentes puntos al igual que los cambios de color en los degradados. Aquí hay algo de código:

 var firstSegment = new Segment({ point: [100, 50], handleOut: [80, 100] }); var secondSegment = new Segment({ point: [300, 50], handleIn: [-80, -100] }); var path = new Path({ segments: [firstSegment, secondSegment], strokeColor: 'black', strokeWidth: 4 });

En el ejemplo anterior, el ancho de strokeWidth es 4 en todas partes a lo largo de la ruta. ¿Cómo puedo crear una ruta que comience con un ancho de trazo de 1 px y luego tenga 6 px de ancho en el otro extremo?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!