Lesson 9 Question Bonus Solution

The Partridge Family were neither partridges nor a family. Discuss.
User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Lesson 9 Question Bonus Solution

Post by chili » February 11th, 2014, 4:08 am

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

User avatar
krautersuppe
Posts: 91
Joined: September 14th, 2015, 10:58 pm
Location: Istanbul

Re: Lesson 9 Question Bonus Solution

Post by krautersuppe » March 27th, 2017, 7:56 pm

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!
There is no need to know trigonometry or calculus to understand this. You need only basic geometry,
algebra and color theory.
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!
I forgot that color values can exceed 255 and thus almost went berserk trying to set up some pattern.
Anyway, here is the approximate code of chili you requested with elaborate visuals and commentary.
Lesson9.zip
(28.72 KiB) Downloaded 133 times
Here is a visual explanation of how the square is drawn:
Lesson_9_forum_explanation.jpg
How the square is drawn with varible names
(65.63 KiB) Not downloaded yet
And here how color values are calculated:
Lesson9_forum_explanation_2.jpg
how color values are calculated
(72.39 KiB) Not downloaded yet
DSU
Discord: dsu1, GitHub: https://github.com/DSpUz

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Lesson 9 Question Bonus Solution

Post by chili » March 28th, 2017, 1:24 am

Wow, a blast from the past right there. Twas a fun little exercise. You following the old tutorial series then?
Chili

User avatar
krautersuppe
Posts: 91
Joined: September 14th, 2015, 10:58 pm
Location: Istanbul

Re: Lesson 9 Question Bonus Solution

Post by krautersuppe » March 28th, 2017, 3:05 pm

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

User avatar
krautersuppe
Posts: 91
Joined: September 14th, 2015, 10:58 pm
Location: Istanbul

Re: Lesson 9 Question Bonus Solution

Post by krautersuppe » April 1st, 2017, 7:08 pm

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
Lesson_10_cells.jpg
(150.77 KiB) Not downloaded yet
asimovs_star_plus_cell.zip
(33.87 KiB) Downloaded 157 times
DSU
Discord: dsu1, GitHub: https://github.com/DSpUz

Post Reply