Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void image::create_color()
- {
- for (int i = 0; i < maxHeight; ++i)
- {
- for (int j = 0; j < maxWidth; ++j)
- {
- int mult = i * j;
- pixelColor a;
- a.R = mult;
- a.G = mult;
- a.B = mult;
- colorMatrix[i][j] = a;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement