KineticJS polígono múltiples colores de trazo

Is it possible to have multiple stroke colors for a KineticJS regular polygon?

Here is a fiddle of just a regular pentagon http://jsfiddle.net/BrianSpry/wNT4D/. Essentially I want to be able to have a

    stroke: 'insert different color'

for each of the 5 sides, however I do not know if that is easily possible with KineticJs.

¡Gracias!

preguntado el 27 de noviembre de 13 a las 02:11

1 Respuestas

The regular polygon shape can only have 1 stroke color.

As a workaround, you can use a Kinetic.Group containing 5 Kinetic.Lines with different fill colors to assemble a 5 colored pentagon.

respondido 27 nov., 13:05

Thanks markE! I really appreciate the effort you put into answering the KineticJS questions, it really helps out new guys like me! - Brian

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.