Składowe R, G, B

Kolor: model RGB i zapis szesnastkowy - Grafika komputerowa w liceum i technikum (draw)

Kolor **#ff0000** to R = ff (255), G = 00, B = 00, czyli samo czerwone światło. Mieszanie jest **addytywne**: czerwone i zielone dają żółte (#ffff00), a wszystkie trzy na maksimum dają biel (#ffffff). Wartość 0-255 mieści się w jednym bajcie, więc kolor piksela zajmuje 3 bajty (24 bity), a z kanałem przezroczystości 4 bajty.

{"width":800,"height":600,"background":"#ffffff","shapes":[{"type":"rect","stroke":"#94a3b8","strokeWidth":2,"opacity":1,"rotation":0,"hidden":false,"group":null,"fill":"#ff0000","x":60,"y":140,"w":150,"h":150},{"type":"text","stroke":null,"strokeWidth":0,"opacity":1,"rotation":0,"hidden":false,"group":null,"fill":"#0f172a","x":60,"y":310,"text":"#ff0000","size":26,"bold":false,"italic":false,"font":"mono"},{"type":"text","stroke":null,"strokeWidth":0,"opacity":1,"rotation":0,"hidden":false,"group":null,"fill":"#475569","x":60,"y":350,"text":"R=255","size":22,"bold":false,"italic":false,"font":"sans"},{"type":"rect","stroke":"#94a3b8","strokeWidth":2,"opacity":1,"rotation":0,"hidden":false,"group":null,"fill":"#00ff00","x":240,"y":140,"w":150,"h":150},{"type":"text","stroke":null,"strokeWidth":0,"opacity":1,"rotation":0,"hidden":false,"group":null,"fill":"#0f172a","x":240,"y":310,"text":"#00ff00","size":26,"bold":false,"italic":false,"font":"mono"},{"type":"text","stroke":null,"strokeWidth":0,"opacity":1,"rotation":0,"hidden":false,"group":null,"fill":"#475569","x":240,"y":350,"text":"G=255","size":22,"bold":false,"italic":false,"font":"sans"},{"type":"rect","stroke":"#94a3b8","strokeWidth":2,"opacity":1,"rotation":0,"hidden":false,"group":null,"fill":"#0000ff","x":420,"y":140,"w":150,"h":150},{"type":"text","stroke":null,"strokeWidth":0,"opacity":1,"rotation":0,"hidden":false,"group":null,"fill":"#0f172a","x":420,"y":310,"text":"#0000ff","size":26,"bold":false,"italic":false,"font":"mono"},{"type":"text","stroke":null,"strokeWidth":0,"opacity":1,"rotation":0,"hidden":false,"group":null,"fill":"#475569","x":420,"y":350,"text":"B=255","size":22,"bold":false,"italic":false,"font":"sans"},{"type":"rect","stroke":"#94a3b8","strokeWidth":2,"opacity":1,"rotation":0,"hidden":false,"group":null,"fill":"#ffff00","x":600,"y":140,"w":150,"h":150},{"type":"text","stroke":null,"strokeWidth":0,"opacity":1,"rotation":0,"hidden":false,"group":null,"fill":"#0f172a","x":600,"y":310,"text":"#ffff00","size":26,"bold":false,"italic":false,"font":"mono"},{"type":"text","stroke":null,"strokeWidth":0,"opacity":1,"rotation":0,"hidden":false,"group":null,"fill":"#475569","x":600,"y":350,"text":"R+G","size":22,"bold":false,"italic":false,"font":"sans"},{"type":"text","stroke":null,"strokeWidth":0,"opacity":1,"rotation":0,"hidden":false,"group":null,"fill":"#0f172a","x":60,"y":60,"text":"Model RGB: światło czerwone, zielone, niebieskie","size":26,"bold":true,"italic":false,"font":"sans"},{"type":"text","stroke":null,"strokeWidth":0,"opacity":1,"rotation":0,"hidden":false,"group":null,"fill":"#334155","x":60,"y":460,"text":"#ffff00 = R ff, G ff, B 00: czerwone i zielone światło dają żółte","size":24,"bold":false,"italic":false,"font":"sans"}]}

Ładowanie interaktywnego edytora... Jeśli się nie pojawi, włącz JavaScript.

Wszystkie lekcje kursu Grafika komputerowa w liceum i technikum·Zaloguj się, aby zapisać postęp na koncie.