This commit is contained in:
wash2 2026-04-18 20:11:25 +00:00
commit 0fa87f2b35
16382 changed files with 734838 additions and 0 deletions

View file

@ -0,0 +1,2 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Channel orders for packed RGBA types."><title>cosmic::cosmic_theme::palette::rgb::channels - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../" data-static-root-path="../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../static.files/storage-68b7e25d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module channels</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>cosmic_<wbr>theme::<wbr>palette::<wbr>rgb</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../index.html">cosmic</a>::<wbr><a href="../../../index.html">cosmic_theme</a>::<wbr><a href="../../index.html">palette</a>::<wbr><a href="../index.html">rgb</a></div><h1>Module <span>channels</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#72">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Channel orders for packed RGBA types.</p>
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Abgr.html" title="struct cosmic::cosmic_theme::palette::rgb::channels::Abgr">Abgr</a></dt><dd>RGBA color packed in ABGR order.</dd><dt><a class="struct" href="struct.Argb.html" title="struct cosmic::cosmic_theme::palette::rgb::channels::Argb">Argb</a></dt><dd>RGBA color packed in ARGB order.</dd><dt><a class="struct" href="struct.Bgra.html" title="struct cosmic::cosmic_theme::palette::rgb::channels::Bgra">Bgra</a></dt><dd>RGBA color packed in BGRA order.</dd><dt><a class="struct" href="struct.Rgba.html" title="struct cosmic::cosmic_theme::palette::rgb::channels::Rgba">Rgba</a></dt><dd>RGBA color packed in RGBA order.</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"struct":["Abgr","Argb","Bgra","Rgba"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,56 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Types for the RGB color space, including spaces and standards."><title>cosmic::cosmic_theme::palette::rgb - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module rgb</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#linear-and-non-linear-rgb" title="Linear And Non-linear RGB">Linear And Non-linear RGB</a></li></ul><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>cosmic_<wbr>theme::<wbr>palette</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">cosmic_theme</a>::<wbr><a href="../index.html">palette</a></div><h1>Module <span>rgb</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="https://docs.rs/palette/0.7.6/src/palette/lib.rs.html#373">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Types for the RGB color space, including spaces and standards.</p>
<h2 id="linear-and-non-linear-rgb"><a class="doc-anchor" href="#linear-and-non-linear-rgb">§</a>Linear And Non-linear RGB</h2>
<p>Colors in images are often “gamma corrected”, or converted using some
non-linear transfer function into a format like sRGB before being stored or
displayed. This is done as a compression method and to prevent banding; its
also a bit of a legacy from the ages of the CRT monitors, where the output
from the electron gun was non-linear. The problem is that these formats are
<em>non-linear color spaces</em>, which means that many operations that you may
want to perform on colors (addition, subtraction, multiplication, linear
interpolation, etc.) will work unexpectedly when performed in such a
non-linear color space. Thus, the compression has to be reverted to restore
linearity and ensure that many operations on the colors behave as expected.</p>
<p>But, even when colors <em>are</em> linear, there is yet more to explore.</p>
<p>The most common way that colors are defined, especially for computer
storage, is in terms of so-called <em>tristimulus values</em>, meaning that all
colors can be represented as a vector of three values.
The reason colors can generally be stored as only a three-dimensional
vector, and not an <em>N</em>-dimensional one, where <em>N</em> is some number of possible
wavelengths of light, is because our eyes contain only three types of cones.
Each of these cones has its own sensitivity curve in response to the
wavelengths of visible light, giving us three “dimensions” of sensitivity to color.
These cones are often called the L, M, and S (for long, medium, and short)
cones, and their sensitivity curves <em>roughly</em> position them as most
sensitive to “red”, “green”, and “blue” parts of the spectrum. As such, we
can choose only three values to represent any possible color that a human is
able to see. An interesting consequence of this is that humans can see two
different objects which are emitting <em>completely different actual light
spectra</em> as the <em>exact same perceptual color</em> so long as those wavelengths,
when transformed by the sensitivity curves of our cones, end up resulting in
the same L, M, and S values sent to our brains.</p>
<p>A <strong>color space</strong> (which simply refers to a set of standards by which we map
a set of arbitrary values to real-world colors) which uses tristimulus
values is often defined in terms of</p>
<ol>
<li>Its <strong>primaries</strong></li>
<li>Its <strong>reference white</strong> or <strong>white point</strong></li>
</ol>
<p>The <strong>primaries</strong> together represent the total <em>gamut</em> (i.e. displayable
range of colors) of that color space. The <strong>white point</strong> defines a
concrete tristimulus value that corresponds to a real, physical white
reflecting object being lit by a known light source and observed by the
standard observer (i.e. a standardized model of human color perception).</p>
<p>The informal “RGB” color space is such a tristimulus color space, since it
is defined by three values, but it is underspecified since we dont know
which primaries are being used (i.e. how exactly are the canonical “red”,
“green”, and “blue” defined?), nor its white point. In most cases, when
people talk about “RGB” or “Linear RGB” colors, what they are <em>actually</em>
talking about is the “Linear sRGB” color space, which uses the primaries and
white point defined in the sRGB standard, but which <em>does not</em> have the
(non-linear) sRGB <em>transfer function</em> applied.</p>
<p>Palette takes these details into account and encodes them as type
parameters, with sRGB as the default. The goal is to make it easy to use
colors correctly and still allow advanced users a high degree of
flexibility.</p>
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="channels/index.html" title="mod cosmic::cosmic_theme::palette::rgb::channels">channels</a></dt><dd>Channel orders for packed RGBA types.</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Iter.html" title="struct cosmic::cosmic_theme::palette::rgb::Iter">Iter</a></dt><dd>An iterator for <a href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb"><code>Rgb</code></a> values.</dd><dt><a class="struct" href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a></dt><dd>Generic RGB.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.FromHexError.html" title="enum cosmic::cosmic_theme::palette::rgb::FromHexError">From<wbr>HexError</a></dt><dd>Error type for parsing a string of hexadecimal characters to an <code>Rgb</code> color.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.Primaries.html" title="trait cosmic::cosmic_theme::palette::rgb::Primaries">Primaries</a></dt><dd>Represents the red, green and blue primaries of an RGB space.</dd><dt><a class="trait" href="trait.RgbSpace.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbSpace">RgbSpace</a></dt><dd>A set of primaries and a white point.</dd><dt><a class="trait" href="trait.RgbStandard.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbStandard">RgbStandard</a></dt><dd>An RGB space and a transfer function.</dd></dl><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.GammaSrgb.html" title="type cosmic::cosmic_theme::palette::rgb::GammaSrgb">Gamma<wbr>Srgb</a></dt><dd>Gamma 2.2 encoded sRGB.</dd><dt><a class="type" href="type.GammaSrgba.html" title="type cosmic::cosmic_theme::palette::rgb::GammaSrgba">Gamma<wbr>Srgba</a></dt><dd>Gamma 2.2 encoded sRGB with an alpha component.</dd><dt><a class="type" href="type.LinSrgb.html" title="type cosmic::cosmic_theme::palette::rgb::LinSrgb">LinSrgb</a></dt><dd>Linear sRGB.</dd><dt><a class="type" href="type.LinSrgba.html" title="type cosmic::cosmic_theme::palette::rgb::LinSrgba">LinSrgba</a></dt><dd>Linear sRGB with an alpha component.</dd><dt><a class="type" href="type.PackedAbgr.html" title="type cosmic::cosmic_theme::palette::rgb::PackedAbgr">Packed<wbr>Abgr</a></dt><dd>A packed representation of RGBA in ABGR order.</dd><dt><a class="type" href="type.PackedArgb.html" title="type cosmic::cosmic_theme::palette::rgb::PackedArgb">Packed<wbr>Argb</a></dt><dd>A packed representation of RGBA in ARGB order.</dd><dt><a class="type" href="type.PackedBgra.html" title="type cosmic::cosmic_theme::palette::rgb::PackedBgra">Packed<wbr>Bgra</a></dt><dd>A packed representation of RGBA in BGRA order.</dd><dt><a class="type" href="type.PackedRgba.html" title="type cosmic::cosmic_theme::palette::rgb::PackedRgba">Packed<wbr>Rgba</a></dt><dd>A packed representation of RGBA in RGBA order.</dd><dt><a class="type" href="type.Rgba.html" title="type cosmic::cosmic_theme::palette::rgb::Rgba">Rgba</a></dt><dd>Generic RGB with an alpha component. See the <a href="../struct.Alpha.html#Rgba" title="struct cosmic::cosmic_theme::palette::Alpha"><code>Rgba</code> implementation in
<code>Alpha</code></a>.</dd><dt><a class="type" href="type.Srgb.html" title="type cosmic::cosmic_theme::palette::rgb::Srgb">Srgb</a></dt><dd>Non-linear sRGB, the most common RGB input/output format.</dd><dt><a class="type" href="type.Srgba.html" title="type cosmic::cosmic_theme::palette::rgb::Srgba">Srgba</a></dt><dd>Non-linear sRGB with an alpha component.</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"enum":["FromHexError"],"mod":["channels"],"struct":["Iter","Rgb"],"trait":["Primaries","RgbSpace","RgbStandard"],"type":["GammaSrgb","GammaSrgba","LinSrgb","LinSrgba","PackedAbgr","PackedArgb","PackedBgra","PackedRgba","Rgba","Srgb","Srgba"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,11 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Represents the red, green and blue primaries of an RGB space."><title>Primaries in cosmic::cosmic_theme::palette::rgb - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Primaries</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.blue" title="blue">blue</a></li><li><a href="#tymethod.green" title="green">green</a></li><li><a href="#tymethod.red" title="red">red</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme::<wbr>palette::<wbr>rgb</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">cosmic_theme</a>::<wbr><a href="../index.html">palette</a>::<wbr><a href="index.html">rgb</a></div><h1>Trait <span class="trait">Primaries</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#196">Source</a> </span></div><pre class="rust item-decl"><code>pub trait Primaries&lt;T&gt; {
// Required methods
fn <a href="#tymethod.red" class="fn">red</a>() -&gt; <a class="struct" href="../struct.Yxy.html" title="struct cosmic::cosmic_theme::palette::Yxy">Yxy</a>&lt;<a class="struct" href="../white_point/struct.Any.html" title="struct cosmic::cosmic_theme::palette::white_point::Any">Any</a>, T&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.green" class="fn">green</a>() -&gt; <a class="struct" href="../struct.Yxy.html" title="struct cosmic::cosmic_theme::palette::Yxy">Yxy</a>&lt;<a class="struct" href="../white_point/struct.Any.html" title="struct cosmic::cosmic_theme::palette::white_point::Any">Any</a>, T&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.blue" class="fn">blue</a>() -&gt; <a class="struct" href="../struct.Yxy.html" title="struct cosmic::cosmic_theme::palette::Yxy">Yxy</a>&lt;<a class="struct" href="../white_point/struct.Any.html" title="struct cosmic::cosmic_theme::palette::white_point::Any">Any</a>, T&gt;;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Represents the red, green and blue primaries of an RGB space.</p>
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.red" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#198">Source</a><h4 class="code-header">fn <a href="#tymethod.red" class="fn">red</a>() -&gt; <a class="struct" href="../struct.Yxy.html" title="struct cosmic::cosmic_theme::palette::Yxy">Yxy</a>&lt;<a class="struct" href="../white_point/struct.Any.html" title="struct cosmic::cosmic_theme::palette::white_point::Any">Any</a>, T&gt;</h4></section></summary><div class="docblock"><p>Primary red.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.green" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#200">Source</a><h4 class="code-header">fn <a href="#tymethod.green" class="fn">green</a>() -&gt; <a class="struct" href="../struct.Yxy.html" title="struct cosmic::cosmic_theme::palette::Yxy">Yxy</a>&lt;<a class="struct" href="../white_point/struct.Any.html" title="struct cosmic::cosmic_theme::palette::white_point::Any">Any</a>, T&gt;</h4></section></summary><div class="docblock"><p>Primary green.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.blue" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#202">Source</a><h4 class="code-header">fn <a href="#tymethod.blue" class="fn">blue</a>() -&gt; <a class="struct" href="../struct.Yxy.html" title="struct cosmic::cosmic_theme::palette::Yxy">Yxy</a>&lt;<a class="struct" href="../white_point/struct.Any.html" title="struct cosmic::cosmic_theme::palette::white_point::Any">Any</a>, T&gt;</h4></section></summary><div class="docblock"><p>Primary blue.</p>
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Primaries%3CT%3E-for-Srgb" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/encoding/srgb.rs.html#35">Source</a><a href="#impl-Primaries%3CT%3E-for-Srgb" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.Primaries.html" title="trait cosmic::cosmic_theme::palette::rgb::Primaries">Primaries</a>&lt;T&gt; for <a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a><div class="where">where
T: <a class="trait" href="../num/trait.Real.html" title="trait cosmic::cosmic_theme::palette::num::Real">Real</a>,</div></h3></section></div><script src="../../../../trait.impl/palette/rgb/trait.Primaries.js" data-ignore-extern-crates="palette" async></script></section></div></main></body></html>

View file

@ -0,0 +1,19 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A set of primaries and a white point."><title>RgbSpace in cosmic::cosmic_theme::palette::rgb - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">RgbSpace</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Primaries" title="Primaries">Primaries</a></li><li><a href="#associatedtype.WhitePoint" title="WhitePoint">WhitePoint</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.rgb_to_xyz_matrix" title="rgb_to_xyz_matrix">rgb_to_xyz_matrix</a></li><li><a href="#method.xyz_to_rgb_matrix" title="xyz_to_rgb_matrix">xyz_to_rgb_matrix</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-RgbSpace-for-(P,+W)" title="(P, W)">(P, W)</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme::<wbr>palette::<wbr>rgb</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">cosmic_theme</a>::<wbr><a href="../index.html">palette</a>::<wbr><a href="index.html">rgb</a></div><h1>Trait <span class="trait">RgbSpace</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#162">Source</a> </span></div><pre class="rust item-decl"><code>pub trait RgbSpace {
type <a href="#associatedtype.Primaries" class="associatedtype">Primaries</a>;
type <a href="#associatedtype.WhitePoint" class="associatedtype">WhitePoint</a>;
// Provided methods
fn <a href="#method.rgb_to_xyz_matrix" class="fn">rgb_to_xyz_matrix</a>() -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">9</a>]&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.xyz_to_rgb_matrix" class="fn">xyz_to_rgb_matrix</a>() -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">9</a>]&gt; { ... }
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A set of primaries and a white point.</p>
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Primaries" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#164">Source</a><h4 class="code-header">type <a href="#associatedtype.Primaries" class="associatedtype">Primaries</a></h4></section></summary><div class="docblock"><p>The primaries of the RGB color space.</p>
</div></details><details class="toggle" open><summary><section id="associatedtype.WhitePoint" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#167">Source</a><h4 class="code-header">type <a href="#associatedtype.WhitePoint" class="associatedtype">WhitePoint</a></h4></section></summary><div class="docblock"><p>The white point of the RGB color space.</p>
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.rgb_to_xyz_matrix" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#175">Source</a><h4 class="code-header">fn <a href="#method.rgb_to_xyz_matrix" class="fn">rgb_to_xyz_matrix</a>() -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">9</a>]&gt;</h4></section></summary><div class="docblock"><p>Get a pre-defined matrix for converting an RGB value with this standard
into an XYZ value.</p>
<p>Returning <code>None</code> (as in the default implementation) means that the
matrix will be computed dynamically, which is significantly slower.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.xyz_to_rgb_matrix" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#185">Source</a><h4 class="code-header">fn <a href="#method.xyz_to_rgb_matrix" class="fn">xyz_to_rgb_matrix</a>() -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">9</a>]&gt;</h4></section></summary><div class="docblock"><p>Get a pre-defined matrix for converting an XYZ value into an RGB value
with this standard.</p>
<p>Returning <code>None</code> (as in the default implementation) means that the
matrix will be computed dynamically, which is significantly slower.</p>
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-RgbSpace-for-(P,+W)" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#190">Source</a><a href="#impl-RgbSpace-for-(P,+W)" class="anchor">§</a><h3 class="code-header">impl&lt;P, W&gt; <a class="trait" href="trait.RgbSpace.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbSpace">RgbSpace</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(P, W)</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Primaries-1" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#191">Source</a><a href="#associatedtype.Primaries-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Primaries" class="associatedtype">Primaries</a> = P</h4></section><section id="associatedtype.WhitePoint-1" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#192">Source</a><a href="#associatedtype.WhitePoint-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WhitePoint" class="associatedtype">WhitePoint</a> = W</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-RgbSpace-for-Srgb" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/encoding/srgb.rs.html#59">Source</a><a href="#impl-RgbSpace-for-Srgb" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.RgbSpace.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbSpace">RgbSpace</a> for <a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Primaries-2" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/encoding/srgb.rs.html#60">Source</a><a href="#associatedtype.Primaries-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Primaries" class="associatedtype">Primaries</a> = <a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a></h4></section><section id="associatedtype.WhitePoint-2" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/encoding/srgb.rs.html#61">Source</a><a href="#associatedtype.WhitePoint-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WhitePoint" class="associatedtype">WhitePoint</a> = <a class="struct" href="../white_point/struct.D65.html" title="struct cosmic::cosmic_theme::palette::white_point::D65">D65</a></h4></section></div></details></div><script src="../../../../trait.impl/palette/rgb/trait.RgbSpace.js" data-ignore-extern-crates="palette,std" async></script></section></div></main></body></html>

View file

@ -0,0 +1,12 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="An RGB space and a transfer function."><title>RgbStandard in cosmic::cosmic_theme::palette::rgb - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">RgbStandard</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Space" title="Space">Space</a></li><li><a href="#associatedtype.TransferFn" title="TransferFn">TransferFn</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-RgbStandard-for-(Pr,+Wp,+Tf)" title="(Pr, Wp, Tf)">(Pr, Wp, Tf)</a></li><li><a href="#impl-RgbStandard-for-(Sp,+Tf)" title="(Sp, Tf)">(Sp, Tf)</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme::<wbr>palette::<wbr>rgb</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">cosmic_theme</a>::<wbr><a href="../index.html">palette</a>::<wbr><a href="index.html">rgb</a></div><h1>Trait <span class="trait">RgbStandard</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#137">Source</a> </span></div><pre class="rust item-decl"><code>pub trait RgbStandard {
type <a href="#associatedtype.Space" class="associatedtype">Space</a>: <a class="trait" href="trait.RgbSpace.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbSpace">RgbSpace</a>;
type <a href="#associatedtype.TransferFn" class="associatedtype">TransferFn</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>An RGB space and a transfer function.</p>
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Space" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#139">Source</a><h4 class="code-header">type <a href="#associatedtype.Space" class="associatedtype">Space</a>: <a class="trait" href="trait.RgbSpace.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbSpace">RgbSpace</a></h4></section></summary><div class="docblock"><p>The RGB color space.</p>
</div></details><details class="toggle" open><summary><section id="associatedtype.TransferFn" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#142">Source</a><h4 class="code-header">type <a href="#associatedtype.TransferFn" class="associatedtype">TransferFn</a></h4></section></summary><div class="docblock"><p>The transfer function for the color components.</p>
</div></details></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-RgbStandard-for-(Pr,+Wp,+Tf)" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#153-155">Source</a><a href="#impl-RgbStandard-for-(Pr,+Wp,+Tf)" class="anchor">§</a><h3 class="code-header">impl&lt;Pr, Wp, Tf&gt; <a class="trait" href="trait.RgbStandard.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbStandard">RgbStandard</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(Pr, Wp, Tf)</a><div class="where">where
<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(Pr, Wp)</a>: <a class="trait" href="trait.RgbSpace.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbSpace">RgbSpace</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Space-1" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#157">Source</a><a href="#associatedtype.Space-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Space" class="associatedtype">Space</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(Pr, Wp)</a></h4></section><section id="associatedtype.TransferFn-1" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#158">Source</a><a href="#associatedtype.TransferFn-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.TransferFn" class="associatedtype">TransferFn</a> = Tf</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-RgbStandard-for-(Sp,+Tf)" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#145-147">Source</a><a href="#impl-RgbStandard-for-(Sp,+Tf)" class="anchor">§</a><h3 class="code-header">impl&lt;Sp, Tf&gt; <a class="trait" href="trait.RgbStandard.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbStandard">RgbStandard</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(Sp, Tf)</a><div class="where">where
Sp: <a class="trait" href="trait.RgbSpace.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbSpace">RgbSpace</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Space-2" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#149">Source</a><a href="#associatedtype.Space-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Space" class="associatedtype">Space</a> = Sp</h4></section><section id="associatedtype.TransferFn-2" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#150">Source</a><a href="#associatedtype.TransferFn-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.TransferFn" class="associatedtype">TransferFn</a> = Tf</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-RgbStandard-for-Srgb" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/encoding/srgb.rs.html#86">Source</a><a href="#impl-RgbStandard-for-Srgb" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.RgbStandard.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbStandard">RgbStandard</a> for <a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Space-3" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/encoding/srgb.rs.html#87">Source</a><a href="#associatedtype.Space-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Space" class="associatedtype">Space</a> = <a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a></h4></section><section id="associatedtype.TransferFn-3" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/encoding/srgb.rs.html#88">Source</a><a href="#associatedtype.TransferFn-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.TransferFn" class="associatedtype">TransferFn</a> = <a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-RgbStandard-for-Linear%3CSp%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/encoding/linear.rs.html#16-18">Source</a><a href="#impl-RgbStandard-for-Linear%3CSp%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Sp&gt; <a class="trait" href="trait.RgbStandard.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbStandard">RgbStandard</a> for <a class="struct" href="../encoding/struct.Linear.html" title="struct cosmic::cosmic_theme::palette::encoding::Linear">Linear</a>&lt;Sp&gt;<div class="where">where
Sp: <a class="trait" href="trait.RgbSpace.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbSpace">RgbSpace</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Space-4" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/encoding/linear.rs.html#20">Source</a><a href="#associatedtype.Space-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Space" class="associatedtype">Space</a> = Sp</h4></section><section id="associatedtype.TransferFn-4" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/encoding/linear.rs.html#21">Source</a><a href="#associatedtype.TransferFn-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.TransferFn" class="associatedtype">TransferFn</a> = <a class="struct" href="../encoding/linear/struct.LinearFn.html" title="struct cosmic::cosmic_theme::palette::encoding::linear::LinearFn">LinearFn</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-RgbStandard-for-Gamma%3CSp,+N%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/encoding/gamma.rs.html#27-30">Source</a><a href="#impl-RgbStandard-for-Gamma%3CSp,+N%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Sp, N&gt; <a class="trait" href="trait.RgbStandard.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbStandard">RgbStandard</a> for <a class="struct" href="../encoding/struct.Gamma.html" title="struct cosmic::cosmic_theme::palette::encoding::Gamma">Gamma</a>&lt;Sp, N&gt;<div class="where">where
Sp: <a class="trait" href="trait.RgbSpace.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbSpace">RgbSpace</a>,
N: <a class="trait" href="../encoding/gamma/trait.Number.html" title="trait cosmic::cosmic_theme::palette::encoding::gamma::Number">Number</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Space-5" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/encoding/gamma.rs.html#32">Source</a><a href="#associatedtype.Space-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Space" class="associatedtype">Space</a> = Sp</h4></section><section id="associatedtype.TransferFn-5" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/encoding/gamma.rs.html#33">Source</a><a href="#associatedtype.TransferFn-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.TransferFn" class="associatedtype">TransferFn</a> = <a class="struct" href="../encoding/gamma/struct.GammaFn.html" title="struct cosmic::cosmic_theme::palette::encoding::gamma::GammaFn">GammaFn</a>&lt;N&gt;</h4></section></div></details></div><script src="../../../../trait.impl/palette/rgb/trait.RgbStandard.js" data-ignore-extern-crates="palette,std" async></script></section></div></main></body></html>

View file

@ -0,0 +1,19 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Gamma 2.2 encoded sRGB."><title>GammaSrgb in cosmic::cosmic_theme::palette::rgb - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Gamma<wbr>Srgb</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.blue" title="blue">blue</a></li><li><a href="#structfield.green" title="green">green</a></li><li><a href="#structfield.red" title="red">red</a></li><li><a href="#structfield.standard" title="standard">standard</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme::<wbr>palette::<wbr>rgb</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">cosmic_theme</a>::<wbr><a href="../index.html">palette</a>::<wbr><a href="index.html">rgb</a></div><h1>Type Alias <span class="type">GammaSrgb</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#123">Source</a> </span></div><pre class="rust item-decl"><code>pub type GammaSrgb&lt;T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; = <a class="struct" href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&lt;<a class="struct" href="../encoding/struct.Gamma.html" title="struct cosmic::cosmic_theme::palette::encoding::Gamma">Gamma</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>&gt;, T&gt;;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Gamma 2.2 encoded sRGB.</p>
<p>This is similar to <a href="../type.Srgb.html" title="type cosmic::cosmic_theme::palette::Srgb"><code>Srgb</code></a>, but uses the exponent function as an
approximation. Its a common trick to speed up conversion when accuracy can
be sacrificed. Its still faster to use <code>Srgb</code> when also converting to and
from <code>u8</code> at the same time.</p>
<p>See <a href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb"><code>Rgb</code></a> for more details on how to create a value and use it.</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct GammaSrgb&lt;T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; {
pub red: T,
pub green: T,
pub blue: T,
pub standard: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="../encoding/struct.Gamma.html" title="struct cosmic::cosmic_theme::palette::encoding::Gamma">Gamma</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>&gt;&gt;,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.red" class="structfield section-header"><a href="#structfield.red" class="anchor field">§</a><code>red: T</code></span><div class="docblock"><p>The amount of red light, where 0.0 is no red light and 1.0 (or 255u8) is
the highest displayable amount.</p>
</div><span id="structfield.green" class="structfield section-header"><a href="#structfield.green" class="anchor field">§</a><code>green: T</code></span><div class="docblock"><p>The amount of green light, where 0.0 is no green light and 1.0 (or
255u8) is the highest displayable amount.</p>
</div><span id="structfield.blue" class="structfield section-header"><a href="#structfield.blue" class="anchor field">§</a><code>blue: T</code></span><div class="docblock"><p>The amount of blue light, where 0.0 is no blue light and 1.0 (or 255u8)
is the highest displayable amount.</p>
</div><span id="structfield.standard" class="structfield section-header"><a href="#structfield.standard" class="anchor field">§</a><code>standard: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="../encoding/struct.Gamma.html" title="struct cosmic::cosmic_theme::palette::encoding::Gamma">Gamma</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>&gt;&gt;</code></span><div class="docblock"><p>The kind of RGB standard. sRGB is the default.</p>
</div><script src="../../../../type.impl/cosmic/cosmic_theme/palette/rgb/struct.Rgb.js" data-self-path="cosmic::cosmic_theme::palette::GammaSrgb" async></script></section></div></main></body></html>

View file

@ -0,0 +1,14 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Gamma 2.2 encoded sRGB with an alpha component."><title>GammaSrgba in cosmic::cosmic_theme::palette::rgb - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Gamma<wbr>Srgba</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.alpha" title="alpha">alpha</a></li><li><a href="#structfield.color" title="color">color</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme::<wbr>palette::<wbr>rgb</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">cosmic_theme</a>::<wbr><a href="../index.html">palette</a>::<wbr><a href="index.html">rgb</a></div><h1>Type Alias <span class="type">GammaSrgba</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#134">Source</a> </span></div><pre class="rust item-decl"><code>pub type GammaSrgba&lt;T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&lt;<a class="struct" href="../encoding/struct.Gamma.html" title="struct cosmic::cosmic_theme::palette::encoding::Gamma">Gamma</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>&gt;, T&gt;, T&gt;;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Gamma 2.2 encoded sRGB with an alpha component.</p>
<p>This is similar to <a href="../type.Srgba.html" title="type cosmic::cosmic_theme::palette::Srgba"><code>Srgba</code></a>, but uses the exponent function as an
approximation. Its a common trick to speed up conversion when accuracy can
be sacrificed. Its still faster to use <code>Srgba</code> when also converting to and
from <code>u8</code> at the same time.</p>
<p>See <a href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb"><code>Rgb</code></a>, <a href="type.Rgba.html" title="type cosmic::cosmic_theme::palette::rgb::Rgba"><code>Rgba</code></a> and <a href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha"><code>Alpha</code></a> for more details on how to
create a value and use it.</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct GammaSrgba&lt;T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; {
pub color: <a class="struct" href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&lt;<a class="struct" href="../encoding/struct.Gamma.html" title="struct cosmic::cosmic_theme::palette::encoding::Gamma">Gamma</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>&gt;, T&gt;,
pub alpha: T,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.color" class="structfield section-header"><a href="#structfield.color" class="anchor field">§</a><code>color: <a class="struct" href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&lt;<a class="struct" href="../encoding/struct.Gamma.html" title="struct cosmic::cosmic_theme::palette::encoding::Gamma">Gamma</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>&gt;, T&gt;</code></span><div class="docblock"><p>The color.</p>
</div><span id="structfield.alpha" class="structfield section-header"><a href="#structfield.alpha" class="anchor field">§</a><code>alpha: T</code></span><div class="docblock"><p>The transparency component. 0.0 (or 0u8) is fully transparent and 1.0
(or 255u8) is fully opaque.</p>
</div><script src="../../../../type.impl/cosmic/cosmic_theme/palette/struct.Alpha.js" data-self-path="cosmic::cosmic_theme::palette::GammaSrgba" async></script></section></div></main></body></html>

View file

@ -0,0 +1,18 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Linear sRGB."><title>LinSrgb in cosmic::cosmic_theme::palette::rgb - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">LinSrgb</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.blue" title="blue">blue</a></li><li><a href="#structfield.green" title="green">green</a></li><li><a href="#structfield.red" title="red">red</a></li><li><a href="#structfield.standard" title="standard">standard</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme::<wbr>palette::<wbr>rgb</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">cosmic_theme</a>::<wbr><a href="../index.html">palette</a>::<wbr><a href="index.html">rgb</a></div><h1>Type Alias <span class="type">LinSrgb</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#102">Source</a> </span></div><pre class="rust item-decl"><code>pub type LinSrgb&lt;T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; = <a class="struct" href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&lt;<a class="struct" href="../encoding/struct.Linear.html" title="struct cosmic::cosmic_theme::palette::encoding::Linear">Linear</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>&gt;, T&gt;;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Linear sRGB.</p>
<p>You probably want <a href="../type.Srgb.html" title="type cosmic::cosmic_theme::palette::Srgb"><code>Srgb</code></a> if you are looking for an input or output format
(or “just RGB”). This is the linear version of sRGB, which is what you would
usually convert to before working with the color.</p>
<p>See <a href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb"><code>Rgb</code></a> for more details on how to create a value and use it.</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct LinSrgb&lt;T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; {
pub red: T,
pub green: T,
pub blue: T,
pub standard: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="../encoding/struct.Linear.html" title="struct cosmic::cosmic_theme::palette::encoding::Linear">Linear</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>&gt;&gt;,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.red" class="structfield section-header"><a href="#structfield.red" class="anchor field">§</a><code>red: T</code></span><div class="docblock"><p>The amount of red light, where 0.0 is no red light and 1.0 (or 255u8) is
the highest displayable amount.</p>
</div><span id="structfield.green" class="structfield section-header"><a href="#structfield.green" class="anchor field">§</a><code>green: T</code></span><div class="docblock"><p>The amount of green light, where 0.0 is no green light and 1.0 (or
255u8) is the highest displayable amount.</p>
</div><span id="structfield.blue" class="structfield section-header"><a href="#structfield.blue" class="anchor field">§</a><code>blue: T</code></span><div class="docblock"><p>The amount of blue light, where 0.0 is no blue light and 1.0 (or 255u8)
is the highest displayable amount.</p>
</div><span id="structfield.standard" class="structfield section-header"><a href="#structfield.standard" class="anchor field">§</a><code>standard: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="../encoding/struct.Linear.html" title="struct cosmic::cosmic_theme::palette::encoding::Linear">Linear</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>&gt;&gt;</code></span><div class="docblock"><p>The kind of RGB standard. sRGB is the default.</p>
</div><script src="../../../../type.impl/cosmic/cosmic_theme/palette/rgb/struct.Rgb.js" data-self-path="cosmic::cosmic_theme::palette::LinSrgb" async></script></section></div></main></body></html>

View file

@ -0,0 +1,13 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Linear sRGB with an alpha component."><title>LinSrgba in cosmic::cosmic_theme::palette::rgb - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">LinSrgba</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.alpha" title="alpha">alpha</a></li><li><a href="#structfield.color" title="color">color</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme::<wbr>palette::<wbr>rgb</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">cosmic_theme</a>::<wbr><a href="../index.html">palette</a>::<wbr><a href="index.html">rgb</a></div><h1>Type Alias <span class="type">LinSrgba</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#113">Source</a> </span></div><pre class="rust item-decl"><code>pub type LinSrgba&lt;T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&lt;<a class="struct" href="../encoding/struct.Linear.html" title="struct cosmic::cosmic_theme::palette::encoding::Linear">Linear</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>&gt;, T&gt;, T&gt;;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Linear sRGB with an alpha component.</p>
<p>You probably want <a href="../type.Srgba.html" title="type cosmic::cosmic_theme::palette::Srgba"><code>Srgba</code></a> if you are looking for an input or output format
(or “just RGB”). This is the linear version of sRGBA, which is what you
would usually convert to before working with the color.</p>
<p>See <a href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb"><code>Rgb</code></a>, <a href="type.Rgba.html" title="type cosmic::cosmic_theme::palette::rgb::Rgba"><code>Rgba</code></a> and <a href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha"><code>Alpha</code></a> for more details on how to
create a value and use it.</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct LinSrgba&lt;T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; {
pub color: <a class="struct" href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&lt;<a class="struct" href="../encoding/struct.Linear.html" title="struct cosmic::cosmic_theme::palette::encoding::Linear">Linear</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>&gt;, T&gt;,
pub alpha: T,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.color" class="structfield section-header"><a href="#structfield.color" class="anchor field">§</a><code>color: <a class="struct" href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&lt;<a class="struct" href="../encoding/struct.Linear.html" title="struct cosmic::cosmic_theme::palette::encoding::Linear">Linear</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>&gt;, T&gt;</code></span><div class="docblock"><p>The color.</p>
</div><span id="structfield.alpha" class="structfield section-header"><a href="#structfield.alpha" class="anchor field">§</a><code>alpha: T</code></span><div class="docblock"><p>The transparency component. 0.0 (or 0u8) is fully transparent and 1.0
(or 255u8) is fully opaque.</p>
</div><script src="../../../../type.impl/cosmic/cosmic_theme/palette/struct.Alpha.js" data-self-path="cosmic::cosmic_theme::palette::LinSrgba" async></script></section></div></main></body></html>

View file

@ -0,0 +1,8 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A packed representation of RGBA in ABGR order."><title>PackedAbgr in cosmic::cosmic_theme::palette::rgb - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Packed<wbr>Abgr</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.channel_order" title="channel_order">channel_order</a></li><li><a href="#structfield.color" title="color">color</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme::<wbr>palette::<wbr>rgb</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">cosmic_theme</a>::<wbr><a href="../index.html">palette</a>::<wbr><a href="index.html">rgb</a></div><h1>Type Alias <span class="type">PackedAbgr</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#280">Source</a> </span></div><pre class="rust item-decl"><code>pub type PackedAbgr&lt;P = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>&gt; = <a class="struct" href="../cast/struct.Packed.html" title="struct cosmic::cosmic_theme::palette::cast::Packed">Packed</a>&lt;<a class="struct" href="channels/struct.Abgr.html" title="struct cosmic::cosmic_theme::palette::rgb::channels::Abgr">Abgr</a>, P&gt;;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A packed representation of RGBA in ABGR order.</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(transparent)]</div>pub struct PackedAbgr&lt;P = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>&gt; {
pub color: P,
pub channel_order: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="channels/struct.Abgr.html" title="struct cosmic::cosmic_theme::palette::rgb::channels::Abgr">Abgr</a>&gt;,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.color" class="structfield section-header"><a href="#structfield.color" class="anchor field">§</a><code>color: P</code></span><div class="docblock"><p>The color packed into a type <code>P</code>, such as <code>u32</code> or <code>[u8; 4]</code>.</p>
</div><span id="structfield.channel_order" class="structfield section-header"><a href="#structfield.channel_order" class="anchor field">§</a><code>channel_order: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="channels/struct.Abgr.html" title="struct cosmic::cosmic_theme::palette::rgb::channels::Abgr">Abgr</a>&gt;</code></span><div class="docblock"><p>The channel order for the color components in the packed data. See
<a href="../cast/trait.ComponentOrder.html" title="trait cosmic::cosmic_theme::palette::cast::ComponentOrder"><code>ComponentOrder</code></a>.</p>
</div><script src="../../../../type.impl/cosmic/cosmic_theme/palette/cast/struct.Packed.js" data-self-path="cosmic::cosmic_theme::palette::rgb::PackedAbgr" async></script></section></div></main></body></html>

View file

@ -0,0 +1,8 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A packed representation of RGBA in ARGB order."><title>PackedArgb in cosmic::cosmic_theme::palette::rgb - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Packed<wbr>Argb</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.channel_order" title="channel_order">channel_order</a></li><li><a href="#structfield.color" title="color">color</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme::<wbr>palette::<wbr>rgb</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">cosmic_theme</a>::<wbr><a href="../index.html">palette</a>::<wbr><a href="index.html">rgb</a></div><h1>Type Alias <span class="type">PackedArgb</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#274">Source</a> </span></div><pre class="rust item-decl"><code>pub type PackedArgb&lt;P = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>&gt; = <a class="struct" href="../cast/struct.Packed.html" title="struct cosmic::cosmic_theme::palette::cast::Packed">Packed</a>&lt;<a class="struct" href="channels/struct.Argb.html" title="struct cosmic::cosmic_theme::palette::rgb::channels::Argb">Argb</a>, P&gt;;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A packed representation of RGBA in ARGB order.</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(transparent)]</div>pub struct PackedArgb&lt;P = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>&gt; {
pub color: P,
pub channel_order: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="channels/struct.Argb.html" title="struct cosmic::cosmic_theme::palette::rgb::channels::Argb">Argb</a>&gt;,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.color" class="structfield section-header"><a href="#structfield.color" class="anchor field">§</a><code>color: P</code></span><div class="docblock"><p>The color packed into a type <code>P</code>, such as <code>u32</code> or <code>[u8; 4]</code>.</p>
</div><span id="structfield.channel_order" class="structfield section-header"><a href="#structfield.channel_order" class="anchor field">§</a><code>channel_order: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="channels/struct.Argb.html" title="struct cosmic::cosmic_theme::palette::rgb::channels::Argb">Argb</a>&gt;</code></span><div class="docblock"><p>The channel order for the color components in the packed data. See
<a href="../cast/trait.ComponentOrder.html" title="trait cosmic::cosmic_theme::palette::cast::ComponentOrder"><code>ComponentOrder</code></a>.</p>
</div><script src="../../../../type.impl/cosmic/cosmic_theme/palette/cast/struct.Packed.js" data-self-path="cosmic::cosmic_theme::palette::rgb::PackedArgb" async></script></section></div></main></body></html>

View file

@ -0,0 +1,8 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A packed representation of RGBA in BGRA order."><title>PackedBgra in cosmic::cosmic_theme::palette::rgb - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Packed<wbr>Bgra</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.channel_order" title="channel_order">channel_order</a></li><li><a href="#structfield.color" title="color">color</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme::<wbr>palette::<wbr>rgb</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">cosmic_theme</a>::<wbr><a href="../index.html">palette</a>::<wbr><a href="index.html">rgb</a></div><h1>Type Alias <span class="type">PackedBgra</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#277">Source</a> </span></div><pre class="rust item-decl"><code>pub type PackedBgra&lt;P = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>&gt; = <a class="struct" href="../cast/struct.Packed.html" title="struct cosmic::cosmic_theme::palette::cast::Packed">Packed</a>&lt;<a class="struct" href="channels/struct.Bgra.html" title="struct cosmic::cosmic_theme::palette::rgb::channels::Bgra">Bgra</a>, P&gt;;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A packed representation of RGBA in BGRA order.</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(transparent)]</div>pub struct PackedBgra&lt;P = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>&gt; {
pub color: P,
pub channel_order: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="channels/struct.Bgra.html" title="struct cosmic::cosmic_theme::palette::rgb::channels::Bgra">Bgra</a>&gt;,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.color" class="structfield section-header"><a href="#structfield.color" class="anchor field">§</a><code>color: P</code></span><div class="docblock"><p>The color packed into a type <code>P</code>, such as <code>u32</code> or <code>[u8; 4]</code>.</p>
</div><span id="structfield.channel_order" class="structfield section-header"><a href="#structfield.channel_order" class="anchor field">§</a><code>channel_order: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="channels/struct.Bgra.html" title="struct cosmic::cosmic_theme::palette::rgb::channels::Bgra">Bgra</a>&gt;</code></span><div class="docblock"><p>The channel order for the color components in the packed data. See
<a href="../cast/trait.ComponentOrder.html" title="trait cosmic::cosmic_theme::palette::cast::ComponentOrder"><code>ComponentOrder</code></a>.</p>
</div><script src="../../../../type.impl/cosmic/cosmic_theme/palette/cast/struct.Packed.js" data-self-path="cosmic::cosmic_theme::palette::rgb::PackedBgra" async></script></section></div></main></body></html>

View file

@ -0,0 +1,8 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A packed representation of RGBA in RGBA order."><title>PackedRgba in cosmic::cosmic_theme::palette::rgb - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Packed<wbr>Rgba</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.channel_order" title="channel_order">channel_order</a></li><li><a href="#structfield.color" title="color">color</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme::<wbr>palette::<wbr>rgb</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">cosmic_theme</a>::<wbr><a href="../index.html">palette</a>::<wbr><a href="index.html">rgb</a></div><h1>Type Alias <span class="type">PackedRgba</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#271">Source</a> </span></div><pre class="rust item-decl"><code>pub type PackedRgba&lt;P = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>&gt; = <a class="struct" href="../cast/struct.Packed.html" title="struct cosmic::cosmic_theme::palette::cast::Packed">Packed</a>&lt;<a class="struct" href="channels/struct.Rgba.html" title="struct cosmic::cosmic_theme::palette::rgb::channels::Rgba">Rgba</a>, P&gt;;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A packed representation of RGBA in RGBA order.</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(transparent)]</div>pub struct PackedRgba&lt;P = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>&gt; {
pub color: P,
pub channel_order: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="channels/struct.Rgba.html" title="struct cosmic::cosmic_theme::palette::rgb::channels::Rgba">Rgba</a>&gt;,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.color" class="structfield section-header"><a href="#structfield.color" class="anchor field">§</a><code>color: P</code></span><div class="docblock"><p>The color packed into a type <code>P</code>, such as <code>u32</code> or <code>[u8; 4]</code>.</p>
</div><span id="structfield.channel_order" class="structfield section-header"><a href="#structfield.channel_order" class="anchor field">§</a><code>channel_order: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="channels/struct.Rgba.html" title="struct cosmic::cosmic_theme::palette::rgb::channels::Rgba">Rgba</a>&gt;</code></span><div class="docblock"><p>The channel order for the color components in the packed data. See
<a href="../cast/trait.ComponentOrder.html" title="trait cosmic::cosmic_theme::palette::cast::ComponentOrder"><code>ComponentOrder</code></a>.</p>
</div><script src="../../../../type.impl/cosmic/cosmic_theme/palette/cast/struct.Packed.js" data-self-path="cosmic::cosmic_theme::palette::rgb::PackedRgba" async></script></section></div></main></body></html>

View file

@ -0,0 +1,9 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Generic RGB with an alpha component. See the `Rgba` implementation in `Alpha`."><title>Rgba in cosmic::cosmic_theme::palette::rgb - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Rgba</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.alpha" title="alpha">alpha</a></li><li><a href="#structfield.color" title="color">color</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme::<wbr>palette::<wbr>rgb</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">cosmic_theme</a>::<wbr><a href="../index.html">palette</a>::<wbr><a href="index.html">rgb</a></div><h1>Type Alias <span class="type">Rgba</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="https://docs.rs/palette/0.7.6/src/palette/rgb/rgb.rs.html#36">Source</a> </span></div><pre class="rust item-decl"><code>pub type Rgba&lt;S = <a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>, T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&lt;S, T&gt;, T&gt;;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Generic RGB with an alpha component. See the <a href="../struct.Alpha.html#Rgba" title="struct cosmic::cosmic_theme::palette::Alpha"><code>Rgba</code> implementation in
<code>Alpha</code></a>.</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct Rgba&lt;S = <a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>, T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; {
pub color: <a class="struct" href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&lt;S, T&gt;,
pub alpha: T,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.color" class="structfield section-header"><a href="#structfield.color" class="anchor field">§</a><code>color: <a class="struct" href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&lt;S, T&gt;</code></span><div class="docblock"><p>The color.</p>
</div><span id="structfield.alpha" class="structfield section-header"><a href="#structfield.alpha" class="anchor field">§</a><code>alpha: T</code></span><div class="docblock"><p>The transparency component. 0.0 (or 0u8) is fully transparent and 1.0
(or 255u8) is fully opaque.</p>
</div><script src="../../../../type.impl/cosmic/cosmic_theme/palette/struct.Alpha.js" data-self-path="cosmic::cosmic_theme::palette::rgb::Rgba" async></script></section></div></main></body></html>

View file

@ -0,0 +1,17 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Non-linear sRGB, the most common RGB input/output format."><title>Srgb in cosmic::cosmic_theme::palette::rgb - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Srgb</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.blue" title="blue">blue</a></li><li><a href="#structfield.green" title="green">green</a></li><li><a href="#structfield.red" title="red">red</a></li><li><a href="#structfield.standard" title="standard">standard</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme::<wbr>palette::<wbr>rgb</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">cosmic_theme</a>::<wbr><a href="../index.html">palette</a>::<wbr><a href="index.html">rgb</a></div><h1>Type Alias <span class="type">Srgb</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#82">Source</a> </span></div><pre class="rust item-decl"><code>pub type Srgb&lt;T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; = <a class="struct" href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>, T&gt;;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Non-linear sRGB, the most common RGB input/output format.</p>
<p>If you are looking for “just RGB”, this is probably it. This type alias
helps by locking the more generic <a href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb"><code>Rgb</code></a> type to the sRGB format.</p>
<p>See <a href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb"><code>Rgb</code></a> for more details on how to create a value and use it.</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct Srgb&lt;T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; {
pub red: T,
pub green: T,
pub blue: T,
pub standard: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>&gt;,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.red" class="structfield section-header"><a href="#structfield.red" class="anchor field">§</a><code>red: T</code></span><div class="docblock"><p>The amount of red light, where 0.0 is no red light and 1.0 (or 255u8) is
the highest displayable amount.</p>
</div><span id="structfield.green" class="structfield section-header"><a href="#structfield.green" class="anchor field">§</a><code>green: T</code></span><div class="docblock"><p>The amount of green light, where 0.0 is no green light and 1.0 (or
255u8) is the highest displayable amount.</p>
</div><span id="structfield.blue" class="structfield section-header"><a href="#structfield.blue" class="anchor field">§</a><code>blue: T</code></span><div class="docblock"><p>The amount of blue light, where 0.0 is no blue light and 1.0 (or 255u8)
is the highest displayable amount.</p>
</div><span id="structfield.standard" class="structfield section-header"><a href="#structfield.standard" class="anchor field">§</a><code>standard: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>&gt;</code></span><div class="docblock"><p>The kind of RGB standard. sRGB is the default.</p>
</div><script src="../../../../type.impl/cosmic/cosmic_theme/palette/rgb/struct.Rgb.js" data-self-path="cosmic::cosmic_theme::palette::Srgb" async></script></section></div></main></body></html>

View file

@ -0,0 +1,13 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Non-linear sRGB with an alpha component."><title>Srgba in cosmic::cosmic_theme::palette::rgb - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Srgba</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.alpha" title="alpha">alpha</a></li><li><a href="#structfield.color" title="color">color</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme::<wbr>palette::<wbr>rgb</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../index.html">cosmic</a>::<wbr><a href="../../index.html">cosmic_theme</a>::<wbr><a href="../index.html">palette</a>::<wbr><a href="index.html">rgb</a></div><h1>Type Alias <span class="type">Srgba</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="https://docs.rs/palette/0.7.6/src/palette/rgb.rs.html#92">Source</a> </span></div><pre class="rust item-decl"><code>pub type Srgba&lt;T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>, T&gt;, T&gt;;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Non-linear sRGB with an alpha component.</p>
<p>This is a transparent version of <a href="../type.Srgb.html" title="type cosmic::cosmic_theme::palette::Srgb"><code>Srgb</code></a>, which is commonly used as the
input or output format. If you are looking for “just RGBA”, this is probably
it.</p>
<p>See <a href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb"><code>Rgb</code></a>, <a href="type.Rgba.html" title="type cosmic::cosmic_theme::palette::rgb::Rgba"><code>Rgba</code></a> and <a href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha"><code>Alpha</code></a> for more details on how to
create a value and use it.</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct Srgba&lt;T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; {
pub color: <a class="struct" href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>, T&gt;,
pub alpha: T,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.color" class="structfield section-header"><a href="#structfield.color" class="anchor field">§</a><code>color: <a class="struct" href="struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>, T&gt;</code></span><div class="docblock"><p>The color.</p>
</div><span id="structfield.alpha" class="structfield section-header"><a href="#structfield.alpha" class="anchor field">§</a><code>alpha: T</code></span><div class="docblock"><p>The transparency component. 0.0 (or 0u8) is fully transparent and 1.0
(or 255u8) is fully opaque.</p>
</div><script src="../../../../type.impl/cosmic/cosmic_theme/palette/struct.Alpha.js" data-self-path="cosmic::cosmic_theme::palette::Srgba" async></script></section></div></main></body></html>