• Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding rgb from two sources  RSS feed

Josh Galeigh
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EDIT:I got it sorted. I was doing it correctly but I guess I was suppose to average them!

I have to pull out each color, add it, and put it into a new array. This is suppose to be for pictures but I have 2 arrays that I can use to test the code. I also know what is expected. Right now it only prints '2' at iteration 0.

I think the most important part for me is to know whether I can add the colors like I am below. I know I'm extracting them (I've tested this elsewhere) and if the problem is the loops I have an idea to fix it already. But, I'm just not sure about the addition.
Total failure so far:

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!