Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hey so for my graphic C++ class i have to get my code to run something that looks like this. So far i only have

Hey so for my graphic C++ class i have to get my code to run something that looks like this. So far i only have the circle, but i can't figure out how to get it filled, and where to put the code to get the lines. My professor said we should only be editing this section of the code, and should use these commands to get the stuff.

FillRectangle(); and DrawLissajou();

any help would be highly welcomedimage text in transcribedimage text in transcribedimage text in transcribed

sample Microsoft Visual Studio Ouick Launch (Ctri+O) File EditView Project Build Debug Team Tools Test Analyze Window Help Jenniter Maria CokerI Debug Win32 Local Windows Debugger, ; . *A > Solution ExplarerX Search Sollution FxplorP sample (Global Scupe) Calcimage Solution sample' (1 pr References 128 //Lhis i Lta: unLiun yuu mavdl Lu ai External Depend SetFixell, 1, 255, 255, 255) blue line //MAX / 2 gives horizontal line 137 for (Float t -e; t3.14; t 8.81) HAX 6 sinct) +MAX 3 5, 253, 25; Solution Ex. Team Fxp.l.. 152 draRect(bottoe rict, yellow be) 73% Show cutput from: Build 1>c1 : Can and line warnie nee 35 : aption .Gr " h been deprecated and kiii be renoved 1n a future release 1sample.cpp I>sample.vcxproj-) D:CCT215Indge GeneratorAlmege Generator-Debuglserple.exe Ilona building project "sanple.vcxproj.. Build: 1 succecded, foiled, up to date, skipped Error List Oulpu Ln 133 Col 43 Ch 37 Add to Source Control samplc Microsoft Visual Studio Ouick Launch (Ctri+O) File Edit VicwProject ild Debug Team Tools Test Analyze Window Hclp Jenniter Maria CokerI Debug Win32 ' Solution Explorer ? sample.cpop sample Search Sollution FxplorP Solution 'sample' (1 pre sample Feferences External Depend Solution Ex. Team Fxp.l.. 73% Show cutput from: Build 1>cl Comand line warning D9835: option 'Gn* has been deprecated and 1ssample.epp 1sample.vexprojD:Gl215mage Generator Inage Generator Debug 1>Done building project "sample.vcxproi" Build: 1 succeeded, failed, 8 up-to-date, B skipped O Type here to search 7:20 PM 3/11/2019 Learning objectives: .Practice using functions. . Practice abstraction and using parameters. .Understand basics of computer rendering. Learn about Lissajous Curves. Description Write a program in C++that will display the image subdivided into four colored sections as seen on the right. Teal on the top left, yellow on the top right, white on the bottom left and purple on the bottom right. . In the white square draw a filled yellow circle. In the teal square draw a Lissajou curve with parameters 5 6 or ratio-5/6. .In the yellow square draw a Lissajou curve with parameters 3, wl-5 or ratio-3/5. In the purple square draw a Lissajou curve with parameters 4-7, ,-4 or ratio-7/4. Select some contrasting colors so that the curves are visible. Implement the background coloring and Lissajous curves using parameterized functions FillRectangle); and Drawissajou; (so that each of the squares will be calling the same Fil1Rectangle); using a different set of parameters) Outline The Lissajou curves are a family of simple trigonometric curves parameterized as: x(t) WIDTH cos(t) y(t) HEIGHT. cos(ay t) You can think of wx as a parameter which dictates how quickly the cosine function revolves in that direction, influencing how many revolutions the curve will make as it spans its width. You can learn more about them here: ma To fill in the circle, you can think of it as coloring in all the points that are within a certain distance from the center. Consider the equation for the distance between two points: sample Microsoft Visual Studio Ouick Launch (Ctri+O) File EditView Project Build Debug Team Tools Test Analyze Window Help Jenniter Maria CokerI Debug Win32 Local Windows Debugger, ; . *A > Solution ExplarerX Search Sollution FxplorP sample (Global Scupe) Calcimage Solution sample' (1 pr References 128 //Lhis i Lta: unLiun yuu mavdl Lu ai External Depend SetFixell, 1, 255, 255, 255) blue line //MAX / 2 gives horizontal line 137 for (Float t -e; t3.14; t 8.81) HAX 6 sinct) +MAX 3 5, 253, 25; Solution Ex. Team Fxp.l.. 152 draRect(bottoe rict, yellow be) 73% Show cutput from: Build 1>c1 : Can and line warnie nee 35 : aption .Gr " h been deprecated and kiii be renoved 1n a future release 1sample.cpp I>sample.vcxproj-) D:CCT215Indge GeneratorAlmege Generator-Debuglserple.exe Ilona building project "sanple.vcxproj.. Build: 1 succecded, foiled, up to date, skipped Error List Oulpu Ln 133 Col 43 Ch 37 Add to Source Control samplc Microsoft Visual Studio Ouick Launch (Ctri+O) File Edit VicwProject ild Debug Team Tools Test Analyze Window Hclp Jenniter Maria CokerI Debug Win32 ' Solution Explorer ? sample.cpop sample Search Sollution FxplorP Solution 'sample' (1 pre sample Feferences External Depend Solution Ex. Team Fxp.l.. 73% Show cutput from: Build 1>cl Comand line warning D9835: option 'Gn* has been deprecated and 1ssample.epp 1sample.vexprojD:Gl215mage Generator Inage Generator Debug 1>Done building project "sample.vcxproi" Build: 1 succeeded, failed, 8 up-to-date, B skipped O Type here to search 7:20 PM 3/11/2019 Learning objectives: .Practice using functions. . Practice abstraction and using parameters. .Understand basics of computer rendering. Learn about Lissajous Curves. Description Write a program in C++that will display the image subdivided into four colored sections as seen on the right. Teal on the top left, yellow on the top right, white on the bottom left and purple on the bottom right. . In the white square draw a filled yellow circle. In the teal square draw a Lissajou curve with parameters 5 6 or ratio-5/6. .In the yellow square draw a Lissajou curve with parameters 3, wl-5 or ratio-3/5. In the purple square draw a Lissajou curve with parameters 4-7, ,-4 or ratio-7/4. Select some contrasting colors so that the curves are visible. Implement the background coloring and Lissajous curves using parameterized functions FillRectangle); and Drawissajou; (so that each of the squares will be calling the same Fil1Rectangle); using a different set of parameters) Outline The Lissajou curves are a family of simple trigonometric curves parameterized as: x(t) WIDTH cos(t) y(t) HEIGHT. cos(ay t) You can think of wx as a parameter which dictates how quickly the cosine function revolves in that direction, influencing how many revolutions the curve will make as it spans its width. You can learn more about them here: ma To fill in the circle, you can think of it as coloring in all the points that are within a certain distance from the center. Consider the equation for the distance between two points

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Theory Icdt 99 7th International Conference Jerusalem Israel January 10 12 1999 Proceedings Lncs 1540

Authors: Catriel Beeri ,Peter Buneman

1st Edition

3540654526, 978-3540654520

More Books

Students also viewed these Databases questions

Question

8. Explain the contact hypothesis.

Answered: 1 week ago

Question

7. Identify four antecedents that influence intercultural contact.

Answered: 1 week ago