Lesson 9 Question Bonus Solution
Re: Lesson 9 Question Bonus Solution
Somebody a week or so ago was looking for this. I search and searched but couldn't find it. Thanks Pindrought! I'm going to put this in the lesson index.
Chili
- krautersuppe
- Posts: 91
- Joined: September 14th, 2015, 10:58 pm
- Location: Istanbul
Re: Lesson 9 Question Bonus Solution
There is no need to know trigonometry or calculus to understand this. You need only basic geometry,Mr. Serious wrote:Can anyone show all the Game.h and Game.cpp code used in chili's loopy rectangle (pun intended)? It's way beyond my knowledge and comprehension of programming thus far (I'm only on lesson 10 4 beginners) and I do not have a good grasp of intermediate let alone advanced geometry, algebra, trig, nor calculus so if anyone can help explain all the details please help!
algebra and color theory.
I forgot that color values can exceed 255 and thus almost went berserk trying to set up some pattern.KillerDonkey wrote:I was wondering which variable is changed to make the colors move, do you have to make variables for the colors? i tried changing x and y at the very beginning of compose frame and nothing happened, please help!
Anyway, here is the approximate code of chili you requested with elaborate visuals and commentary.
Here is a visual explanation of how the square is drawn: And here how color values are calculated:
DSU
Discord: dsu1, GitHub: https://github.com/DSpUz
Discord: dsu1, GitHub: https://github.com/DSpUz
Re: Lesson 9 Question Bonus Solution
Wow, a blast from the past right there. Twas a fun little exercise. You following the old tutorial series then?
Chili
- krautersuppe
- Posts: 91
- Joined: September 14th, 2015, 10:58 pm
- Location: Istanbul
Re: Lesson 9 Question Bonus Solution
chili wrote:Wow, a blast from the past right there. Twas a fun little exercise. You following the old tutorial series then?
Yes, i did several lessons back at end of 2015 (I am so sorry i couldn't participate right from the beginning at the end of 2011 - it would have been fun to start along with all the others) and saw that you made new tutorials.
I still want to finish what i started back then(I will probably work myself through the new tutorials too - after all - practice makes perfect).Besides - most content on the forum is still related to the old series.
I am going to invest significant amount of time and mental effort (my goal being able to finally understand how the stupid computer works - or die trying) for this stuff - old or new is irrelevant.
DSU
Discord: dsu1, GitHub: https://github.com/DSpUz
Discord: dsu1, GitHub: https://github.com/DSpUz
- krautersuppe
- Posts: 91
- Joined: September 14th, 2015, 10:58 pm
- Location: Istanbul
Re: Lesson 9 Question Bonus Solution
wanted to add here a grid design of mine - i played around with spirocrap of asimov -
i add more detail on the other thread http://www.planetchili.net/forum/viewto ... f=3&t=1065
i add more detail on the other thread http://www.planetchili.net/forum/viewto ... f=3&t=1065
DSU
Discord: dsu1, GitHub: https://github.com/DSpUz
Discord: dsu1, GitHub: https://github.com/DSpUz