¡@

Home 

2014/10/16 ¤W¤È 12:02:25

jquery Programming Glossary: centery

How to make the text write in counterclockwise direction

http://stackoverflow.com/questions/12312752/how-to-make-the-text-write-in-counterclockwise-direction

counterclockwise direction How do I make text write counter clockwise function drawTextAlongArc context str centerX centerY radius angle context.save context.translate centerX centerY context.rotate 1 angle 2 context.rotate 1 angle str.length 2.. clockwise function drawTextAlongArc context str centerX centerY radius angle context.save context.translate centerX centerY context.rotate 1 angle 2 context.rotate 1 angle str.length 2 for var n 0 n str.length n context.rotate angle str.length.. center context.fillStyle blue context.strokeStyle blue context.lineWidth 4 var centerX canvas.width 2 var centerY canvas.height 30 var angle Math.PI 0.8 radians var radius 150 drawTextAlongArc context Text along arc path centerX centerY..