Documentation/Calc Functions/FARVE
Jump to navigation
Jump to search
TDF LibreOffice Document Liberation Project Community Blogs Weblate Nextcloud Redmine Ask LibreOffice Donate
FARVE
Kategori:
Matematisk
Resume:
Returnerer en numerisk værdi beregnet af en kombination af tre farver (rød, grøn og blå) og alfa-kanalen i RGBA-farvesystemet. Resultatet afhænger af det farvesystem, din computer bruger.
Syntaks:
FARVE(Rød; Grøn; Blå; Alfa)
Returnerer:
Returnerer et positivt heltal.
Argumenter:
Rød, Grøn and Blå (obligatorisk) Værdien af farvekomponenterne rød, grøn and blå. Værdierne skal være mellem 0 og 255. Nul betyder ingen farvekomponent og 255 betyder fuld farvekomponent.
Alfa (valgfri) Værdien for alfa-kanalen eller alfa-komponenten.
Alfa er en heltalsværdi mellem 0 og 255. Værdi 0 for alfa betyder, at farven er helt transparent, mens værdien 255 i alfakanalen giver en heldækkende farve.
- Hvis ét af argumenterne er et decimaltal, anvendes dets gulvværdi.
- Hvis ét af argumenterne er mindre end 0 eller større end 255, returnerer funktionen en fejlværdi.
Yderligere oplysninger:
Ingen
Eksempler:
Formula | Description | Returns |
---|---|---|
=COLOR(255;255;255;1) | Red, Green and Blue have full color component and alpha channel is 1 | 33554431 |
=COLOR(0;0;255;0) | Red and Green have no color component and Blue has full color component and alpha channel is 0 indicating fully transparent | 255 |
=COLOR(0;0;255;255) | Red has no color component, Green and Blue have full color component and alpha channel is 255 indicating fully opaque | 4278190335 |
=COLOR(255;255;255) | Red, Green and Blue have full color component, alpha channel is optional | 16777215 |
=COLOR(25.5;255;255) | Red value is 25(floor value is considered for decimal numbers), Green and Blue have full color component, alpha channel is optional | 1703935 |
=COLOR(25.5;255;255) | Red, Green and Blue have full color component, alpha channel | 16777215 |
=COLOR(255;-255;255) | Green has negative value so the function will return an error value | Err:502 |
=COLOR(255;256;255) | Green has value out of range so the function will return an error value | Err:502 |
Beslægtede LibreOffice-funktioner:
Ingen
ODF standard:
Ingen
Tilsvarende Excel-funktioner:
Ingen