File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ function setup() {
88
99 setTimeout ( function ( ) {
1010 console . log ( "Save image" )
11- img . save ( " png") ;
11+ save ( img , "unicorn. png") ;
1212 } , 1000 ) ;
1313
1414 } ) ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ function setup() {
1919 newRow . setString ( 'name' , 'Mosquito' ) ;
2020 newRow . setString ( 'type' , 'Insect' ) ;
2121
22- saveTable ( table , 'animals.bin' , 'bin ') ;
22+ save ( table , 'animals.csv ' ) ;
2323}
2424
2525// Sketch saves the following to a file called 'animals.csv':
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ function setup() {
1919 values . push ( animal ) ; // add an animal object to the array
2020 }
2121
22- saveJSONArray ( values , 'animals.json' ) ;
22+ save ( values , 'animals.json' ) ;
2323}
2424
2525// Sketch saves the following to a file called "animals.json":
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ function setup() {
88 json . species = 'Panthera leo' ;
99 json . name = 'Lion' ;
1010
11- saveJSONObject ( json , 'lion.json' ) ;
11+ save ( json , 'lion.json' ) ;
1212}
1313
1414// Sketch saves the following to a file called "lion.json":
Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ function setup() {
66 var list = split ( words , ' ' ) ;
77
88 // Writes the strings to a file, each on a separate line
9- saveStrings ( list , 'nouns.txt' ) ;
9+ save ( list , 'nouns.txt' ) ;
1010}
You can’t perform that action at this time.
0 commit comments