|   FORUM      |     Tutoriales    |     KIO4 |      
   Start B4A (Basic4Android) App inventor 2 Arduino
   Elastix - VoIP Things of Windows Interesting Webs  Telecomunications

 


Nuevo concurso para España, Argentina, Brasil, Chile, Colombia, Ecuador, México, Perú y Portugal.

App Inventor 2
Programming mobi
le phones with Android 
by App Inventor 2 - Juan Antonio Villalpando

- Initiation Tutorial App Inventor 2 -

Return to tutorial index

____________________________

51.- Additive color mixing.

- Presentation.

- Additive color mixing: we start with 3 basic colors Red, Green and Blue, the sum of these colors in different proportions give us another color. The sum of colors is used with lights: light bulbs, TV screens, projectors, ...
The sum to total saturation of these colors gives the White.
The background where your add colors should be Black.

- Subtractive color mixing: we start with 3 basic colors Magenta, Cyan and Yellow, the sum of these colors in different proportions give us another color. Subtraction of color pigments used with printers, painting, printing, ...
Subtraction with total saturation of these colors gives the Black.
The background where your subtract colors should be White.

________________________________________

- Additions of colors.

ip51_add_colors

We will have three Sliders and four Labels, three of them will get a basic color and the fourth the sum of the three colors.

In computers, one byte is used for each color, a byte is 8 bits. With 8 bits we have 256 combinations for each color, ie each color can have 256 different levels (from 0 to 255).
When a basic color is at its highest level (255) is said to be saturated. The sum of the three colors can have 256 x 256 x 256 = 16,777,216 different colors, obviously our eyes can not distinguish the number of colors.

_________________
Design

We put the property ColorLeft slippers in Red, Green and Blue.
The MaxValue and MinValue 255 and 0 respectively.

_________________
Blocks


__________________________________

 

- My e-mail:
juana1991@yahoo.com
- Who I am. - Cookies. Texts and images propierty autor:
© Juan A. Villalpando
Not copy texts neither images.
We use our own cookies and third-party cookies on our websites to maintain the session and your preferences, customize your user experience and obtain website use statistics.
Si continúa navegando consideramos que acepta su uso. OK    Más información