SlideShare a Scribd company logo
Using Processing 4 (Java), create a sketch that allows you to draw an animal with the keyboard
and/or mouse controlling the parameters. A tree-like structure for the limbs of your animal. The
Root node represents the torso, and there will be a number of arms/legs that are connected to the
torso. Consider that each articulated body part in the tree is an instance of a class that has the
visual and geometric properties of the body. The mouse and/or keyboard interaction allows you
to control some of the appearances of each part. You need to create a structure that stores info
about the current body part and has pointers/references to child instances. You need to store
information about the bounding box of each drawable part of the animal so that you can select it
and edit it. You will need to use PVectors for this because PVector allows you to do things like
PVector v1 = new PVector( 10.0, 5.0 ); v1.rotate( HALF_PI ); With a limb selected, you should
have a little control panel in your editor to adjust its appearance of it. Appearance could mean
color or angle, or anything suitable. Appearance: You should spend some time on the appearance
of the animal.
We would like to see more than a stick dog, or stick bird, or stick human, because we want you
to be able to show your animal off at the end of the term.
Code Requirements:
- A base class and 2 subclasses that extend the base class (say one for the head and one for
leg(s))
- Provide a user interface for saving the drawn animal as a screenshot image.
- User interaction with the mouse and/or keyboard lays down your animal in the drawing area
and allows animal editing
- Add controlP5 controls to select body parts, to clear the screen, etc.

More Related Content

More from aassecuritysystem

What will the following Python program print out- Explain the output d.pdf
What will the following Python program print out- Explain the output d.pdfWhat will the following Python program print out- Explain the output d.pdf
What will the following Python program print out- Explain the output d.pdf
aassecuritysystem
 
Which of the following statements regarding Red Bull's promotional str.pdf
Which of the following statements regarding Red Bull's promotional str.pdfWhich of the following statements regarding Red Bull's promotional str.pdf
Which of the following statements regarding Red Bull's promotional str.pdf
aassecuritysystem
 
Which statement about how investment impacts economic growth is true-.pdf
Which statement about how investment impacts economic growth is true-.pdfWhich statement about how investment impacts economic growth is true-.pdf
Which statement about how investment impacts economic growth is true-.pdf
aassecuritysystem
 
What is the purpose of a vision statement- Select the correct option a.pdf
What is the purpose of a vision statement- Select the correct option a.pdfWhat is the purpose of a vision statement- Select the correct option a.pdf
What is the purpose of a vision statement- Select the correct option a.pdf
aassecuritysystem
 
Using year 0 (now) as the base year- the expenses for two economic alt.pdf
Using year 0 (now) as the base year- the expenses for two economic alt.pdfUsing year 0 (now) as the base year- the expenses for two economic alt.pdf
Using year 0 (now) as the base year- the expenses for two economic alt.pdf
aassecuritysystem
 
Thirty years ago- Clarkin was a small city (about 70-000 residents) th.pdf
Thirty years ago- Clarkin was a small city (about 70-000 residents) th.pdfThirty years ago- Clarkin was a small city (about 70-000 residents) th.pdf
Thirty years ago- Clarkin was a small city (about 70-000 residents) th.pdf
aassecuritysystem
 
The Feedfish App putlic Maisindilaryit- O-9eerile ievpeindy i-public c.pdf
The Feedfish App putlic Maisindilaryit- O-9eerile ievpeindy i-public c.pdfThe Feedfish App putlic Maisindilaryit- O-9eerile ievpeindy i-public c.pdf
The Feedfish App putlic Maisindilaryit- O-9eerile ievpeindy i-public c.pdf
aassecuritysystem
 
The following is the balance sheet numbers reported by Bay Bank for 20.pdf
The following is the balance sheet numbers reported by Bay Bank for 20.pdfThe following is the balance sheet numbers reported by Bay Bank for 20.pdf
The following is the balance sheet numbers reported by Bay Bank for 20.pdf
aassecuritysystem
 
The economy is in long run equilibrium- there is a positive AD shock i.pdf
The economy is in long run equilibrium- there is a positive AD shock i.pdfThe economy is in long run equilibrium- there is a positive AD shock i.pdf
The economy is in long run equilibrium- there is a positive AD shock i.pdf
aassecuritysystem
 
Summary SHORT PAPER- Review the case on p- 87 Chapters 4- Prepare a sh.pdf
Summary SHORT PAPER- Review the case on p- 87 Chapters 4- Prepare a sh.pdfSummary SHORT PAPER- Review the case on p- 87 Chapters 4- Prepare a sh.pdf
Summary SHORT PAPER- Review the case on p- 87 Chapters 4- Prepare a sh.pdf
aassecuritysystem
 
Special Senses 1- What are the three layers or the neural tunic of the.pdf
Special Senses 1- What are the three layers or the neural tunic of the.pdfSpecial Senses 1- What are the three layers or the neural tunic of the.pdf
Special Senses 1- What are the three layers or the neural tunic of the.pdf
aassecuritysystem
 
Significant differences between experimentally observed allele frequen.pdf
Significant differences between experimentally observed allele frequen.pdfSignificant differences between experimentally observed allele frequen.pdf
Significant differences between experimentally observed allele frequen.pdf
aassecuritysystem
 
Say the Dow Jones Industrial Average was 300 in October 1929 and 100 i.pdf
Say the Dow Jones Industrial Average was 300 in October 1929 and 100 i.pdfSay the Dow Jones Industrial Average was 300 in October 1929 and 100 i.pdf
Say the Dow Jones Industrial Average was 300 in October 1929 and 100 i.pdf
aassecuritysystem
 
Disk drives have been getting larger- Their capacity is now often give.pdf
Disk drives have been getting larger- Their capacity is now often give.pdfDisk drives have been getting larger- Their capacity is now often give.pdf
Disk drives have been getting larger- Their capacity is now often give.pdf
aassecuritysystem
 
Diaz Company reports the following variable costing income statement f.pdf
Diaz Company reports the following variable costing income statement f.pdfDiaz Company reports the following variable costing income statement f.pdf
Diaz Company reports the following variable costing income statement f.pdf
aassecuritysystem
 
Minstrel Manufacturing uses a job order costing system- During one mon.pdf
Minstrel Manufacturing uses a job order costing system- During one mon.pdfMinstrel Manufacturing uses a job order costing system- During one mon.pdf
Minstrel Manufacturing uses a job order costing system- During one mon.pdf
aassecuritysystem
 
Morris Inc- recorded the following transactions over the life of a pie.pdf
Morris Inc- recorded the following transactions over the life of a pie.pdfMorris Inc- recorded the following transactions over the life of a pie.pdf
Morris Inc- recorded the following transactions over the life of a pie.pdf
aassecuritysystem
 
Merge(numbers- 0-2-5 ) is called- Complete the table for leftPos and r.pdf
Merge(numbers- 0-2-5 ) is called- Complete the table for leftPos and r.pdfMerge(numbers- 0-2-5 ) is called- Complete the table for leftPos and r.pdf
Merge(numbers- 0-2-5 ) is called- Complete the table for leftPos and r.pdf
aassecuritysystem
 
Implement a program in C++ that does the following- 1- Requests the us.pdf
Implement a program in C++ that does the following- 1- Requests the us.pdfImplement a program in C++ that does the following- 1- Requests the us.pdf
Implement a program in C++ that does the following- 1- Requests the us.pdf
aassecuritysystem
 
In the Pierce case- the plaintiff alleged that she was unlawfully term.pdf
In the Pierce case- the plaintiff alleged that she was unlawfully term.pdfIn the Pierce case- the plaintiff alleged that she was unlawfully term.pdf
In the Pierce case- the plaintiff alleged that she was unlawfully term.pdf
aassecuritysystem
 

More from aassecuritysystem (20)

What will the following Python program print out- Explain the output d.pdf
What will the following Python program print out- Explain the output d.pdfWhat will the following Python program print out- Explain the output d.pdf
What will the following Python program print out- Explain the output d.pdf
 
Which of the following statements regarding Red Bull's promotional str.pdf
Which of the following statements regarding Red Bull's promotional str.pdfWhich of the following statements regarding Red Bull's promotional str.pdf
Which of the following statements regarding Red Bull's promotional str.pdf
 
Which statement about how investment impacts economic growth is true-.pdf
Which statement about how investment impacts economic growth is true-.pdfWhich statement about how investment impacts economic growth is true-.pdf
Which statement about how investment impacts economic growth is true-.pdf
 
What is the purpose of a vision statement- Select the correct option a.pdf
What is the purpose of a vision statement- Select the correct option a.pdfWhat is the purpose of a vision statement- Select the correct option a.pdf
What is the purpose of a vision statement- Select the correct option a.pdf
 
Using year 0 (now) as the base year- the expenses for two economic alt.pdf
Using year 0 (now) as the base year- the expenses for two economic alt.pdfUsing year 0 (now) as the base year- the expenses for two economic alt.pdf
Using year 0 (now) as the base year- the expenses for two economic alt.pdf
 
Thirty years ago- Clarkin was a small city (about 70-000 residents) th.pdf
Thirty years ago- Clarkin was a small city (about 70-000 residents) th.pdfThirty years ago- Clarkin was a small city (about 70-000 residents) th.pdf
Thirty years ago- Clarkin was a small city (about 70-000 residents) th.pdf
 
The Feedfish App putlic Maisindilaryit- O-9eerile ievpeindy i-public c.pdf
The Feedfish App putlic Maisindilaryit- O-9eerile ievpeindy i-public c.pdfThe Feedfish App putlic Maisindilaryit- O-9eerile ievpeindy i-public c.pdf
The Feedfish App putlic Maisindilaryit- O-9eerile ievpeindy i-public c.pdf
 
The following is the balance sheet numbers reported by Bay Bank for 20.pdf
The following is the balance sheet numbers reported by Bay Bank for 20.pdfThe following is the balance sheet numbers reported by Bay Bank for 20.pdf
The following is the balance sheet numbers reported by Bay Bank for 20.pdf
 
The economy is in long run equilibrium- there is a positive AD shock i.pdf
The economy is in long run equilibrium- there is a positive AD shock i.pdfThe economy is in long run equilibrium- there is a positive AD shock i.pdf
The economy is in long run equilibrium- there is a positive AD shock i.pdf
 
Summary SHORT PAPER- Review the case on p- 87 Chapters 4- Prepare a sh.pdf
Summary SHORT PAPER- Review the case on p- 87 Chapters 4- Prepare a sh.pdfSummary SHORT PAPER- Review the case on p- 87 Chapters 4- Prepare a sh.pdf
Summary SHORT PAPER- Review the case on p- 87 Chapters 4- Prepare a sh.pdf
 
Special Senses 1- What are the three layers or the neural tunic of the.pdf
Special Senses 1- What are the three layers or the neural tunic of the.pdfSpecial Senses 1- What are the three layers or the neural tunic of the.pdf
Special Senses 1- What are the three layers or the neural tunic of the.pdf
 
Significant differences between experimentally observed allele frequen.pdf
Significant differences between experimentally observed allele frequen.pdfSignificant differences between experimentally observed allele frequen.pdf
Significant differences between experimentally observed allele frequen.pdf
 
Say the Dow Jones Industrial Average was 300 in October 1929 and 100 i.pdf
Say the Dow Jones Industrial Average was 300 in October 1929 and 100 i.pdfSay the Dow Jones Industrial Average was 300 in October 1929 and 100 i.pdf
Say the Dow Jones Industrial Average was 300 in October 1929 and 100 i.pdf
 
Disk drives have been getting larger- Their capacity is now often give.pdf
Disk drives have been getting larger- Their capacity is now often give.pdfDisk drives have been getting larger- Their capacity is now often give.pdf
Disk drives have been getting larger- Their capacity is now often give.pdf
 
Diaz Company reports the following variable costing income statement f.pdf
Diaz Company reports the following variable costing income statement f.pdfDiaz Company reports the following variable costing income statement f.pdf
Diaz Company reports the following variable costing income statement f.pdf
 
Minstrel Manufacturing uses a job order costing system- During one mon.pdf
Minstrel Manufacturing uses a job order costing system- During one mon.pdfMinstrel Manufacturing uses a job order costing system- During one mon.pdf
Minstrel Manufacturing uses a job order costing system- During one mon.pdf
 
Morris Inc- recorded the following transactions over the life of a pie.pdf
Morris Inc- recorded the following transactions over the life of a pie.pdfMorris Inc- recorded the following transactions over the life of a pie.pdf
Morris Inc- recorded the following transactions over the life of a pie.pdf
 
Merge(numbers- 0-2-5 ) is called- Complete the table for leftPos and r.pdf
Merge(numbers- 0-2-5 ) is called- Complete the table for leftPos and r.pdfMerge(numbers- 0-2-5 ) is called- Complete the table for leftPos and r.pdf
Merge(numbers- 0-2-5 ) is called- Complete the table for leftPos and r.pdf
 
Implement a program in C++ that does the following- 1- Requests the us.pdf
Implement a program in C++ that does the following- 1- Requests the us.pdfImplement a program in C++ that does the following- 1- Requests the us.pdf
Implement a program in C++ that does the following- 1- Requests the us.pdf
 
In the Pierce case- the plaintiff alleged that she was unlawfully term.pdf
In the Pierce case- the plaintiff alleged that she was unlawfully term.pdfIn the Pierce case- the plaintiff alleged that she was unlawfully term.pdf
In the Pierce case- the plaintiff alleged that she was unlawfully term.pdf
 

Recently uploaded

Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 

Recently uploaded (20)

Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 

Using Processing 4 (Java)- create a sketch that allows you to draw an.pdf

  • 1. Using Processing 4 (Java), create a sketch that allows you to draw an animal with the keyboard and/or mouse controlling the parameters. A tree-like structure for the limbs of your animal. The Root node represents the torso, and there will be a number of arms/legs that are connected to the torso. Consider that each articulated body part in the tree is an instance of a class that has the visual and geometric properties of the body. The mouse and/or keyboard interaction allows you to control some of the appearances of each part. You need to create a structure that stores info about the current body part and has pointers/references to child instances. You need to store information about the bounding box of each drawable part of the animal so that you can select it and edit it. You will need to use PVectors for this because PVector allows you to do things like PVector v1 = new PVector( 10.0, 5.0 ); v1.rotate( HALF_PI ); With a limb selected, you should have a little control panel in your editor to adjust its appearance of it. Appearance could mean color or angle, or anything suitable. Appearance: You should spend some time on the appearance of the animal. We would like to see more than a stick dog, or stick bird, or stick human, because we want you to be able to show your animal off at the end of the term. Code Requirements: - A base class and 2 subclasses that extend the base class (say one for the head and one for leg(s)) - Provide a user interface for saving the drawn animal as a screenshot image. - User interaction with the mouse and/or keyboard lays down your animal in the drawing area and allows animal editing - Add controlP5 controls to select body parts, to clear the screen, etc.