2

If I build a bezier curve using control.bezierCurveTo, I would like to programmatically draw the mirror reflection of this curve. I have the start/end and control points for first curve. Any ideas appreciated.

2 Answers 2

2

To mirror your points around the x axis, it's simply the same points but with negative y values.

(1,4) (-2,2) (4,-6) ==> (1,-4) (-2,-2) (4,6)

Same applies for the y axis, but use negative x values instead.

1
  • can you give same jsfiddle example of this Apr 23, 2014 at 11:57
0

Just mirror the control points around the axis of your choice.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.