( x, y, radius, fill, stroke = false )
| 160 | } |
| 161 | |
| 162 | drawCircle( x, y, radius, fill, stroke = false ){ |
| 163 | this.context.fillStyle = fill; |
| 164 | if ( stroke ) this.context.strokeStyle = "#000"; |
| 165 | this.context.lineWidth = 1; |
| 166 | this.context.beginPath(); |
| 167 | this.context.arc( x, y, radius, 0, Math.PI*2 ); |
| 168 | this.context.fill(); |
| 169 | if ( stroke ) this.context.stroke(); |
| 170 | } |
| 171 | |
| 172 | drawArrow( x, y, radius, fill, left ){ |
| 173 | this.context.fillStyle = fill; |