Becuse I didn't feel really confident about working with colors and using rgb system, I decided to practice and experiment with the color first, just to learn and understand it better.
My first step was: learning how to use a random function.
My first step was: learning how to use a random function.
r (255), g (0), b (0)
This means that computer can use variety of colors from 0 to 255 for red and it can not use green and blue at all. So the output of this code is random colors from 0 (black) to 255 (pure red). As can be seen on pictures below it works in the same way for the other two basic colors (green and blue) as well.
r (0), g (255), b (0)
r (0), g (255), b (0)
Now, when I know how to get basic colors I can experiment with mixing basic colors.
r (250, 255), g (250, 255), b (255)
r (250, 255), g (255), b (250, 255)
r (255), g (250, 255), b (250, 255)
I also tryed using boundaries for only one basic color and use the whole range (0, 255) for the other two.
r (250, 255), g (255), b (255)
r (255), g (250, 255), b (255)
r (255), g (255), b (250, 255)
No comments:
Post a Comment