• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Adding rgb from two sources

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:






reply
    Bookmark Topic Watch Topic
  • New Topic