// JS-GRPHX.TXT (c) J R Stockton www.merlyn.demon.co.uk >= 2010-01-08 // Needs js-circl.txt js-dash2.txt // Rag.height = "555" // sets canvas height CX.save() CX.fillStyle = "#DDDDDD" ; CX.fillRect( 0, 0, 560, 400) CX.fillStyle = "white" ; CX.fillRect(20, 20, 520, 360) CX.translate(+280, +200) var J, T1, T2, T3 CX.strokeStyle = "#0000FF" CX.beginPath() ; CX.moveTo(0, 0) for (J = 0 ; J < 1000 ; J++) { T1 = 0.04*J ; T2 = 0.25*J ; T3 = 0.15*J CX.lineTo(T2*Math.cos(T1), T3*Math.sin(T1)) } CX.dashTo(-200, 160, [2,4,6,8,10,12,14,16,18,20]) CX.dashTo( 200, 160) CX.stroke() Glob.DrawCircle() if (CX.fillText) { CX.fillStyle = "green" CX.font = "12pt sans-serif" CX.fillText(new Date(), -200, -150) } CX.restore() // EoF.