@@ -81,11 +81,11 @@ function outputs(p5, fn){
81
81
*
82
82
* <div>
83
83
* <code>
84
- *
84
+ *
85
85
* function setup(){
86
86
* createCanvas(100, 100);
87
87
* }
88
- *
88
+ *
89
89
* function draw() {
90
90
* // Add the text description.
91
91
* textOutput();
@@ -106,11 +106,11 @@ function outputs(p5, fn){
106
106
*
107
107
* <div>
108
108
* <code>
109
- *
109
+ *
110
110
* function setup(){
111
111
* createCanvas(100, 100);
112
112
* }
113
- *
113
+ *
114
114
* function draw() {
115
115
* // Add the text description and
116
116
* // display it for debugging.
@@ -225,11 +225,11 @@ function outputs(p5, fn){
225
225
*
226
226
* <div>
227
227
* <code>
228
- *
228
+ *
229
229
* function setup() {
230
230
* createCanvas(100, 100);
231
231
* }
232
- *
232
+ *
233
233
* function draw() {
234
234
* // Add the grid description.
235
235
* gridOutput();
@@ -250,11 +250,11 @@ function outputs(p5, fn){
250
250
*
251
251
* <div>
252
252
* <code>
253
- *
253
+ *
254
254
* function setup(){
255
255
* createCanvas(100, 100);
256
256
* }
257
- *
257
+ *
258
258
* function draw() {
259
259
* // Add the grid description and
260
260
* // display it for debugging.
@@ -561,7 +561,8 @@ function outputs(p5, fn){
561
561
562
562
//gets position of shape in the canvas
563
563
fn . _getPos = function ( x , y ) {
564
- const { x : transformedX , y : transformedY } = this . worldToScreen ( new p5 . Vector ( x , y ) ) ;
564
+ const { x : transformedX , y : transformedY } =
565
+ this . worldToScreen ( new p5 . Vector ( x , y ) ) ;
565
566
const canvasWidth = this . width ;
566
567
const canvasHeight = this . height ;
567
568
if ( transformedX < 0.4 * canvasWidth ) {
0 commit comments