SlideShare a Scribd company logo
1 of 20
Oriol Pla Álvarez
B1E








You have to download and install Processing 1.5.1.
Then you have to install some things:
Quicktime 7 (Apple video software).
WinVDIG1.0.5.exe, it’s Video digitalizer for
Quicktime.
GSVideo-1.00windows.zip, this is a library.
NyAR4psg, this is a library.


This is an introduction of the code. The markers are
patt.hiro and patt.kanji.
These are where necessary libraries are imported.
This several lines declare some specialized variables.
The two lines following the colormode() function call
create the fonts that will be used for text.
Print a line in the console with the version of
multimaker.


Next, a new GSCapture object is created and
assigned to the variable that has already been
declared for that purpose.
Now that these values have been set, these variables
are used as arguments for the NyARMultiBoard
constructor to create the new NyARMultiBoard object
nya.


The next chunk of code is for drawing the little
labeled dots that indicate the corner positions.


To define this function, first the font, stroke color,
and the stroke weight.


Here we can see the coordinates of the line and the
text font.


Now begins the draw() function. As usual, this
contains the main repeating functionality of the
sketch.


The read() method is called for the cam object. This
tells cam to read the camera data into an image.


The next few lines draw down objects. Fill is the
color of the box. Translate is the movement. And we
can see that the box is of 40x40x40 pixels.


It is the same that the other box because it is the
green box, only change the color.
Augmented reality with processing. Oriol Pla
Augmented reality with processing. Oriol Pla

More Related Content

Viewers also liked

Restructure sales process
Restructure sales processRestructure sales process
Restructure sales processSudip Samaddar
 
What capabilities alliance gamification software has
What capabilities alliance gamification software hasWhat capabilities alliance gamification software has
What capabilities alliance gamification software hasSudip Samaddar
 
Ways to improve lead to admission part 2
Ways to improve lead to admission part 2Ways to improve lead to admission part 2
Ways to improve lead to admission part 2Sudip Samaddar
 
Is the team sticking to their follow ups
Is the team sticking to their follow upsIs the team sticking to their follow ups
Is the team sticking to their follow upsSudip Samaddar
 
Ways to improve lead to admission ratio 1
Ways to improve lead to admission ratio 1Ways to improve lead to admission ratio 1
Ways to improve lead to admission ratio 1Sudip Samaddar
 
How to motivate sales force
How to motivate sales forceHow to motivate sales force
How to motivate sales forceSudip Samaddar
 
Icfes estructura de pruebas saber
Icfes estructura de pruebas saberIcfes estructura de pruebas saber
Icfes estructura de pruebas sabermarlosa75
 
Piano aria sicilia glossario da pag 237 a pag 239 piano veneto da pag 233 a ...
Piano aria sicilia glossario da pag 237 a pag 239  piano veneto da pag 233 a ...Piano aria sicilia glossario da pag 237 a pag 239  piano veneto da pag 233 a ...
Piano aria sicilia glossario da pag 237 a pag 239 piano veneto da pag 233 a ...Pino Ciampolillo
 
Pli leadership ppt
Pli leadership pptPli leadership ppt
Pli leadership pptcatdeer
 
DIFRACCIÓN E INTERFERENCIA
DIFRACCIÓN E INTERFERENCIADIFRACCIÓN E INTERFERENCIA
DIFRACCIÓN E INTERFERENCIAjhonatanm96
 
Serie la agonia sobre la cruz by eliud gamez rev1 preview
Serie  la agonia sobre la cruz by eliud gamez rev1 previewSerie  la agonia sobre la cruz by eliud gamez rev1 preview
Serie la agonia sobre la cruz by eliud gamez rev1 previewEliud Gamez Gomez
 
newsletter_example of work
newsletter_example of worknewsletter_example of work
newsletter_example of workScott Johnston
 

Viewers also liked (20)

Our Travel Ireland
Our Travel IrelandOur Travel Ireland
Our Travel Ireland
 
Restructure sales process
Restructure sales processRestructure sales process
Restructure sales process
 
What capabilities alliance gamification software has
What capabilities alliance gamification software hasWhat capabilities alliance gamification software has
What capabilities alliance gamification software has
 
Ways to improve lead to admission part 2
Ways to improve lead to admission part 2Ways to improve lead to admission part 2
Ways to improve lead to admission part 2
 
Is the team sticking to their follow ups
Is the team sticking to their follow upsIs the team sticking to their follow ups
Is the team sticking to their follow ups
 
Ways to improve lead to admission ratio 1
Ways to improve lead to admission ratio 1Ways to improve lead to admission ratio 1
Ways to improve lead to admission ratio 1
 
How to motivate sales force
How to motivate sales forceHow to motivate sales force
How to motivate sales force
 
Bel2
Bel2Bel2
Bel2
 
IR-3
IR-3IR-3
IR-3
 
Icfes estructura de pruebas saber
Icfes estructura de pruebas saberIcfes estructura de pruebas saber
Icfes estructura de pruebas saber
 
Piano aria sicilia glossario da pag 237 a pag 239 piano veneto da pag 233 a ...
Piano aria sicilia glossario da pag 237 a pag 239  piano veneto da pag 233 a ...Piano aria sicilia glossario da pag 237 a pag 239  piano veneto da pag 233 a ...
Piano aria sicilia glossario da pag 237 a pag 239 piano veneto da pag 233 a ...
 
Uso redes sociales
Uso redes socialesUso redes sociales
Uso redes sociales
 
Pli leadership ppt
Pli leadership pptPli leadership ppt
Pli leadership ppt
 
DIFRACCIÓN E INTERFERENCIA
DIFRACCIÓN E INTERFERENCIADIFRACCIÓN E INTERFERENCIA
DIFRACCIÓN E INTERFERENCIA
 
Serie la agonia sobre la cruz by eliud gamez rev1 preview
Serie  la agonia sobre la cruz by eliud gamez rev1 previewSerie  la agonia sobre la cruz by eliud gamez rev1 preview
Serie la agonia sobre la cruz by eliud gamez rev1 preview
 
Tutorial bidi unam 2
Tutorial bidi unam 2Tutorial bidi unam 2
Tutorial bidi unam 2
 
Bel2
Bel2Bel2
Bel2
 
newsletter_example of work
newsletter_example of worknewsletter_example of work
newsletter_example of work
 
2013 2 dntm
2013 2 dntm2013 2 dntm
2013 2 dntm
 
Mecánica:)
Mecánica:)Mecánica:)
Mecánica:)
 

Similar to Augmented reality with processing. Oriol Pla

Viva64: working up of 64-bit applications
Viva64: working up of 64-bit applicationsViva64: working up of 64-bit applications
Viva64: working up of 64-bit applicationsPVS-Studio
 
The Nightmare Fuzzing Suite and Blind Code Coverage Fuzzer
The Nightmare Fuzzing Suite and Blind Code Coverage FuzzerThe Nightmare Fuzzing Suite and Blind Code Coverage Fuzzer
The Nightmare Fuzzing Suite and Blind Code Coverage FuzzerJoxean Koret
 
Porting is a Delicate Matter: Checking Far Manager under Linux
Porting is a Delicate Matter: Checking Far Manager under LinuxPorting is a Delicate Matter: Checking Far Manager under Linux
Porting is a Delicate Matter: Checking Far Manager under LinuxPVS-Studio
 
Cis 170 c ilab 5 of 7 arrays and strings
Cis 170 c ilab 5 of 7 arrays and stringsCis 170 c ilab 5 of 7 arrays and strings
Cis 170 c ilab 5 of 7 arrays and stringsCIS321
 
Proyecto de microcontroladores
Proyecto de microcontroladoresProyecto de microcontroladores
Proyecto de microcontroladoresCarlos Molina
 
Vladimir Ulogov - Beyond the Loadable Module
Vladimir Ulogov - Beyond the Loadable ModuleVladimir Ulogov - Beyond the Loadable Module
Vladimir Ulogov - Beyond the Loadable ModuleZabbix
 
Beyond the Loadable Module
Beyond the Loadable ModuleBeyond the Loadable Module
Beyond the Loadable ModuleVladimir Ulogov
 
OpenWhisk by Example - Auto Retweeting Example in Python
OpenWhisk by Example - Auto Retweeting Example in PythonOpenWhisk by Example - Auto Retweeting Example in Python
OpenWhisk by Example - Auto Retweeting Example in PythonCodeOps Technologies LLP
 
A guide to building a handwriting number recognition app using flutter and te...
A guide to building a handwriting number recognition app using flutter and te...A guide to building a handwriting number recognition app using flutter and te...
A guide to building a handwriting number recognition app using flutter and te...Concetto Labs
 
Parallel programming c++ win10 msmpi visual studio
Parallel programming c++ win10 msmpi visual studioParallel programming c++ win10 msmpi visual studio
Parallel programming c++ win10 msmpi visual studiopraveench1888
 
Encode x ICH: Intro to Building on the IC in Motoko
Encode x ICH: Intro to Building on the IC in MotokoEncode x ICH: Intro to Building on the IC in Motoko
Encode x ICH: Intro to Building on the IC in MotokoKlaraOrban
 
The Ring programming language version 1.9 book - Part 58 of 210
The Ring programming language version 1.9 book - Part 58 of 210The Ring programming language version 1.9 book - Part 58 of 210
The Ring programming language version 1.9 book - Part 58 of 210Mahmoud Samir Fayed
 
Archeology for Entertainment, or Checking Microsoft Word 1.1a with PVS-Studio
Archeology for Entertainment, or Checking Microsoft Word 1.1a with PVS-StudioArcheology for Entertainment, or Checking Microsoft Word 1.1a with PVS-Studio
Archeology for Entertainment, or Checking Microsoft Word 1.1a with PVS-StudioAndrey Karpov
 
How the PVS-Studio Team Improved Unreal Engine's Code
How the PVS-Studio Team Improved Unreal Engine's CodeHow the PVS-Studio Team Improved Unreal Engine's Code
How the PVS-Studio Team Improved Unreal Engine's CodePVS-Studio
 
Hot Code Replacement - Alexei Sholik
Hot Code Replacement - Alexei SholikHot Code Replacement - Alexei Sholik
Hot Code Replacement - Alexei SholikElixir Club
 
Devry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsDevry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsjody zoll
 

Similar to Augmented reality with processing. Oriol Pla (20)

Viva64: working up of 64-bit applications
Viva64: working up of 64-bit applicationsViva64: working up of 64-bit applications
Viva64: working up of 64-bit applications
 
The Nightmare Fuzzing Suite and Blind Code Coverage Fuzzer
The Nightmare Fuzzing Suite and Blind Code Coverage FuzzerThe Nightmare Fuzzing Suite and Blind Code Coverage Fuzzer
The Nightmare Fuzzing Suite and Blind Code Coverage Fuzzer
 
Porting is a Delicate Matter: Checking Far Manager under Linux
Porting is a Delicate Matter: Checking Far Manager under LinuxPorting is a Delicate Matter: Checking Far Manager under Linux
Porting is a Delicate Matter: Checking Far Manager under Linux
 
final paper
final paperfinal paper
final paper
 
Vhdl design flow
Vhdl design flowVhdl design flow
Vhdl design flow
 
ai
aiai
ai
 
Cis 170 c ilab 5 of 7 arrays and strings
Cis 170 c ilab 5 of 7 arrays and stringsCis 170 c ilab 5 of 7 arrays and strings
Cis 170 c ilab 5 of 7 arrays and strings
 
Proyecto de microcontroladores
Proyecto de microcontroladoresProyecto de microcontroladores
Proyecto de microcontroladores
 
Vladimir Ulogov - Beyond the Loadable Module
Vladimir Ulogov - Beyond the Loadable ModuleVladimir Ulogov - Beyond the Loadable Module
Vladimir Ulogov - Beyond the Loadable Module
 
Beyond the Loadable Module
Beyond the Loadable ModuleBeyond the Loadable Module
Beyond the Loadable Module
 
OpenWhisk by Example - Auto Retweeting Example in Python
OpenWhisk by Example - Auto Retweeting Example in PythonOpenWhisk by Example - Auto Retweeting Example in Python
OpenWhisk by Example - Auto Retweeting Example in Python
 
A guide to building a handwriting number recognition app using flutter and te...
A guide to building a handwriting number recognition app using flutter and te...A guide to building a handwriting number recognition app using flutter and te...
A guide to building a handwriting number recognition app using flutter and te...
 
Android native gl
Android native glAndroid native gl
Android native gl
 
Parallel programming c++ win10 msmpi visual studio
Parallel programming c++ win10 msmpi visual studioParallel programming c++ win10 msmpi visual studio
Parallel programming c++ win10 msmpi visual studio
 
Encode x ICH: Intro to Building on the IC in Motoko
Encode x ICH: Intro to Building on the IC in MotokoEncode x ICH: Intro to Building on the IC in Motoko
Encode x ICH: Intro to Building on the IC in Motoko
 
The Ring programming language version 1.9 book - Part 58 of 210
The Ring programming language version 1.9 book - Part 58 of 210The Ring programming language version 1.9 book - Part 58 of 210
The Ring programming language version 1.9 book - Part 58 of 210
 
Archeology for Entertainment, or Checking Microsoft Word 1.1a with PVS-Studio
Archeology for Entertainment, or Checking Microsoft Word 1.1a with PVS-StudioArcheology for Entertainment, or Checking Microsoft Word 1.1a with PVS-Studio
Archeology for Entertainment, or Checking Microsoft Word 1.1a with PVS-Studio
 
How the PVS-Studio Team Improved Unreal Engine's Code
How the PVS-Studio Team Improved Unreal Engine's CodeHow the PVS-Studio Team Improved Unreal Engine's Code
How the PVS-Studio Team Improved Unreal Engine's Code
 
Hot Code Replacement - Alexei Sholik
Hot Code Replacement - Alexei SholikHot Code Replacement - Alexei Sholik
Hot Code Replacement - Alexei Sholik
 
Devry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsDevry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and strings
 

Recently uploaded

Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 

Recently uploaded (20)

Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 

Augmented reality with processing. Oriol Pla

  • 2.       You have to download and install Processing 1.5.1. Then you have to install some things: Quicktime 7 (Apple video software). WinVDIG1.0.5.exe, it’s Video digitalizer for Quicktime. GSVideo-1.00windows.zip, this is a library. NyAR4psg, this is a library.
  • 3.
  • 4.
  • 5.
  • 6.  This is an introduction of the code. The markers are patt.hiro and patt.kanji.
  • 7. These are where necessary libraries are imported.
  • 8. This several lines declare some specialized variables.
  • 9. The two lines following the colormode() function call create the fonts that will be used for text. Print a line in the console with the version of multimaker.
  • 10.  Next, a new GSCapture object is created and assigned to the variable that has already been declared for that purpose.
  • 11. Now that these values have been set, these variables are used as arguments for the NyARMultiBoard constructor to create the new NyARMultiBoard object nya.
  • 12.  The next chunk of code is for drawing the little labeled dots that indicate the corner positions.
  • 13.  To define this function, first the font, stroke color, and the stroke weight.
  • 14.  Here we can see the coordinates of the line and the text font.
  • 15.  Now begins the draw() function. As usual, this contains the main repeating functionality of the sketch.
  • 16.  The read() method is called for the cam object. This tells cam to read the camera data into an image.
  • 17.  The next few lines draw down objects. Fill is the color of the box. Translate is the movement. And we can see that the box is of 40x40x40 pixels.
  • 18.  It is the same that the other box because it is the green box, only change the color.