var searchIndex = {}; searchIndex["palette"] = {"doc":"A library that makes linear color calculations and conversion easy and\naccessible for anyone. It provides both precision tools that lets you work\nin exactly the color space you want to, as well as a general color type\nthat abstracts away some of the technical details.","items":[[3,"Rgb","palette","Linear RGB with an alpha component.",null,null],[12,"red","","The amount of red light, where 0.0 is no red light and 1.0 is the\nhighest displayable amount.",0,null],[12,"green","","The amount of green light, where 0.0 is no green light and 1.0 is the\nhighest displayable amount.",0,null],[12,"blue","","The amount of blue light, where 0.0 is no blue light and 1.0 is the\nhighest displayable amount.",0,null],[12,"alpha","","The transparency of the color. 0.0 is completely transparent and 1.0 is\ncompletely opaque.",0,null],[3,"Luma","","Linear luminance with an alpha component.",null,null],[12,"luma","","The lightness of the color. 0.0 is black and 1.0 is white.",1,null],[12,"alpha","","The transparency of the color. 0.0 is completely transparent and 1.0 is\ncompletely opaque.",1,null],[3,"Xyz","","The CIE 1931 XYZ color space with an alpha component.",null,null],[12,"x","","X is the scale of what can be seen as a response curve for the cone\ncells in the human eye. It goes from 0.0 to 1.0.",2,null],[12,"y","","Y is the luminance of the color, where 0.0 is black and 1.0 is white.",2,null],[12,"z","","Z is the scale of what can be seen as the blue stimulation. It goes\nfrom 0.0 to 1.0.",2,null],[12,"alpha","","The transparency of the color. 0.0 is completely transparent and 1.0 is\ncompletely opaque.",2,null],[3,"Lab","","The CIE L*a*b* (CIELAB) color space with an alpha component.",null,null],[12,"l","","L* is the lightness of the color. 0.0 gives absolute black and 1.0\ngive the brightest white.",3,null],[12,"a","","a* goes from red at -1.0 to green at 1.0.",3,null],[12,"b","","b* goes from yellow at -1.0 to blue at 1.0.",3,null],[12,"alpha","","The transparency of the color. 0.0 is completely transparent and 1.0 is\ncompletely opaque.",3,null],[3,"Lch","","CIE L*C*h°, a polar version of [CIE L*a*b*](struct.Lab.html), with an alpha\ncomponent.",null,null],[12,"l","","L* is the lightness of the color. 0.0 gives absolute black and 1.0\ngive the brightest white.",4,null],[12,"chroma","","C* is the colorfulness of the color. It's similar to saturation. 0.0\ngives gray scale colors, and numbers around 1.0-1.41421356 gives fully\nsaturated colors. The upper limit of 1.41421356 (or `sqrt(2.0)`) should\ninclude the whole L*a*b* space and some more.",4,null],[12,"hue","","The hue of the color, in degrees. Decides if it's red, blue, purple,\netc.",4,null],[12,"alpha","","The transparency of the color. 0.0 is completely transparent and 1.0 is\ncompletely opaque.",4,null],[3,"Hsv","","Linear HSV color space with an alpha component.",null,null],[12,"hue","","The hue of the color, in degrees. Decides if it's red, blue, purple,\netc.",5,null],[12,"saturation","","The colorfulness of the color. 0.0 gives gray scale colors and 1.0 will\ngive absolutely clear colors.",5,null],[12,"value","","Decides how bright the color will look. 0.0 will be black, and 1.0 will\ngive a bright an clear color that goes towards white when `saturation`\ngoes towards 0.0.",5,null],[12,"alpha","","The transparency of the color. 0.0 is completely transparent and 1.0 is\ncompletely opaque.",5,null],[3,"Hsl","","Linear HSL color space with an alpha component.",null,null],[12,"hue","","The hue of the color, in degrees. Decides if it's red, blue, purple,\netc.",6,null],[12,"saturation","","The colorfulness of the color. 0.0 gives gray scale colors and 1.0 will\ngive absolutely clear colors.",6,null],[12,"lightness","","Decides how light the color will look. 0.0 will be black, 0.5 will give\na clear color, and 1.0 will give white.",6,null],[12,"alpha","","The transparency of the color. 0.0 is completely transparent and 1.0 is\ncompletely opaque.",6,null],[3,"LabHue","","A hue type for the CIE L*a*b* family of color spaces.",null,null],[3,"RgbHue","","A hue type for the RGB family of color spaces.",null,null],[4,"Color","","A generic color type.",null,null],[13,"Luma","","Linear luminance.",7,null],[13,"Rgb","","Linear RGB.",7,null],[13,"Xyz","","CIE 1931 XYZ.",7,null],[13,"Lab","","CIE L*a*b* (CIELAB).",7,null],[13,"Lch","","CIE L*C*h°, a polar version of CIE L*a*b*.",7,null],[13,"Hsv","","Linear HSV, a cylindrical version of RGB.",7,null],[13,"Hsl","","Linear HSL, a cylindrical version of RGB.",7,null],[0,"gradient","","Types for interpolation between multiple colors.",null,null],[3,"Gradient","palette::gradient","A linear interpolation between colors.",null,null],[3,"Take","","An iterator over interpolated colors.",null,null],[3,"Slice","","A slice of a Gradient that limits its domain.",null,null],[3,"Range","","A domain range for gradient slices.",null,null],[11,"fmt","","",8,null],[11,"clone","","",8,null],[11,"new","","Create a gradient of evenly spaced colors with the domain [0.0, 1.0].\nThere must be at least one color.",8,{"inputs":[{"name":"i"}],"output":{"name":"gradient"}}],[11,"with_domain","","Create a gradient of colors with custom spacing and domain. There must be\nat least one color and they are expected to be ordered by their\nposition value.",8,{"inputs":[{"name":"vec"}],"output":{"name":"gradient"}}],[11,"get","","Get a color from the gradient. The color of the closest control point\nwill be returned if `i` is outside the domain.",8,null],[11,"take","","Take `n` evenly spaced colors from the gradient, as an iterator.",8,null],[11,"slice","","Slice this gradient to limit its domain.",8,null],[11,"domain","","Get the limits of this gradient's domain.",8,null],[11,"next","","",9,null],[11,"size_hint","","",9,null],[11,"fmt","","",10,null],[11,"clone","","",10,null],[11,"get","","Get a color from the gradient slice. The color of the closest domain\nlimit will be returned if `i` is outside the domain.",10,null],[11,"take","","Take `n` evenly spaced colors from the gradient slice, as an iterator.",10,null],[11,"slice","","Slice this gradient slice to further limit its domain. Ranges outside\nthe domain will be clamped to the nearest domain limit.",10,null],[11,"domain","","Get the limits of this gradient slice's domain.",10,null],[11,"eq","","",11,null],[11,"ne","","",11,null],[11,"fmt","","",11,null],[11,"clone","","",11,null],[11,"from","","",11,{"inputs":[{"name":"range"}],"output":{"name":"range"}}],[11,"from","","",11,{"inputs":[{"name":"rangefrom"}],"output":{"name":"range"}}],[11,"from","","",11,{"inputs":[{"name":"rangeto"}],"output":{"name":"range"}}],[11,"from","","",11,{"inputs":[{"name":"rangefull"}],"output":{"name":"range"}}],[11,"eq","palette","",0,null],[11,"ne","","",0,null],[11,"fmt","","",0,null],[11,"clone","","",0,null],[11,"linear_rgb","","Linear RGB.",0,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"rgb"}}],[11,"linear_rgba","","Linear RGB with transparency.",0,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"rgb"}}],[11,"linear_rgb8","","Linear RGB from 8 bit values.",0,{"inputs":[{"name":"u8"},{"name":"u8"},{"name":"u8"}],"output":{"name":"rgb"}}],[11,"linear_rgba8","","Linear RGB with transparency from 8 bit values.",0,{"inputs":[{"name":"u8"},{"name":"u8"},{"name":"u8"},{"name":"u8"}],"output":{"name":"rgb"}}],[11,"linear_pixel","","Linear RGB from a linear pixel value.",0,{"inputs":[{"name":"p"}],"output":{"name":"rgb"}}],[11,"srgb","","Linear RGB from sRGB.",0,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"rgb"}}],[11,"srgba","","Linear RGB from sRGB with transparency.",0,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"rgb"}}],[11,"srgb8","","Linear RGB from 8 bit sRGB.",0,{"inputs":[{"name":"u8"},{"name":"u8"},{"name":"u8"}],"output":{"name":"rgb"}}],[11,"srgba8","","Linear RGB from 8 bit sRGB with transparency.",0,{"inputs":[{"name":"u8"},{"name":"u8"},{"name":"u8"},{"name":"u8"}],"output":{"name":"rgb"}}],[11,"srgb_pixel","","Linear RGB from an sRGB pixel value.",0,{"inputs":[{"name":"p"}],"output":{"name":"rgb"}}],[11,"gamma_rgb","","Linear RGB from gamma corrected RGB.",0,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"rgb"}}],[11,"gamma_rgba","","Linear RGB from gamma corrected RGB with transparency.",0,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"rgb"}}],[11,"gamma_rgb8","","Linear RGB from 8 bit gamma corrected RGB.",0,{"inputs":[{"name":"u8"},{"name":"u8"},{"name":"u8"},{"name":"f32"}],"output":{"name":"rgb"}}],[11,"gamma_rgba8","","Linear RGB from 8 bit gamma corrected RGB with transparency.",0,{"inputs":[{"name":"u8"},{"name":"u8"},{"name":"u8"},{"name":"u8"},{"name":"f32"}],"output":{"name":"rgb"}}],[11,"gamma_pixel","","Linear RGB from a gamma corrected pixel value.",0,{"inputs":[{"name":"p"},{"name":"f32"}],"output":{"name":"rgb"}}],[11,"to_linear","","Convert to a linear RGB pixel. `Rgb` is already assumed to be linear,\nso the components will just be clamped to [0.0, 1.0] before conversion.",0,null],[11,"to_srgb","","Convert to an sRGB pixel.",0,null],[11,"to_gamma","","Convert to a gamma corrected RGB pixel.",0,null],[11,"is_valid","","",0,null],[11,"clamp","","",0,null],[11,"clamp_self","","",0,null],[11,"mix","","",0,null],[11,"lighten","","",0,null],[11,"get_hue","","",0,null],[11,"default","","",0,{"inputs":[],"output":{"name":"rgb"}}],[11,"add","","",0,null],[11,"add","","",0,null],[11,"sub","","",0,null],[11,"sub","","",0,null],[11,"mul","","",0,null],[11,"mul","","",0,null],[11,"div","","",0,null],[11,"div","","",0,null],[11,"from","","",0,{"inputs":[{"name":"color"}],"output":{"name":"rgb"}}],[11,"from","","",0,{"inputs":[{"name":"luma"}],"output":{"name":"rgb"}}],[11,"from","","",0,{"inputs":[{"name":"xyz"}],"output":{"name":"rgb"}}],[11,"from","","",0,{"inputs":[{"name":"lab"}],"output":{"name":"rgb"}}],[11,"from","","",0,{"inputs":[{"name":"lch"}],"output":{"name":"rgb"}}],[11,"from","","",0,{"inputs":[{"name":"hsv"}],"output":{"name":"rgb"}}],[11,"from","","",0,{"inputs":[{"name":"hsl"}],"output":{"name":"rgb"}}],[11,"eq","","",1,null],[11,"ne","","",1,null],[11,"fmt","","",1,null],[11,"clone","","",1,null],[11,"y","","Linear luminance.",1,{"inputs":[{"name":"f32"}],"output":{"name":"luma"}}],[11,"ya","","Linear luminance with transparency.",1,{"inputs":[{"name":"f32"},{"name":"f32"}],"output":{"name":"luma"}}],[11,"y8","","Linear luminance from an 8 bit value.",1,{"inputs":[{"name":"u8"}],"output":{"name":"luma"}}],[11,"ya8","","Linear luminance and transparency from 8 bit values.",1,{"inputs":[{"name":"u8"},{"name":"u8"}],"output":{"name":"luma"}}],[11,"is_valid","","",1,null],[11,"clamp","","",1,null],[11,"clamp_self","","",1,null],[11,"mix","","",1,null],[11,"lighten","","",1,null],[11,"default","","",1,{"inputs":[],"output":{"name":"luma"}}],[11,"add","","",1,null],[11,"add","","",1,null],[11,"sub","","",1,null],[11,"sub","","",1,null],[11,"mul","","",1,null],[11,"mul","","",1,null],[11,"div","","",1,null],[11,"div","","",1,null],[11,"from","","",1,{"inputs":[{"name":"color"}],"output":{"name":"luma"}}],[11,"from","","",1,{"inputs":[{"name":"rgb"}],"output":{"name":"luma"}}],[11,"from","","",1,{"inputs":[{"name":"xyz"}],"output":{"name":"luma"}}],[11,"from","","",1,{"inputs":[{"name":"lab"}],"output":{"name":"luma"}}],[11,"from","","",1,{"inputs":[{"name":"lch"}],"output":{"name":"luma"}}],[11,"from","","",1,{"inputs":[{"name":"hsv"}],"output":{"name":"luma"}}],[11,"from","","",1,{"inputs":[{"name":"hsl"}],"output":{"name":"luma"}}],[11,"eq","","",2,null],[11,"ne","","",2,null],[11,"fmt","","",2,null],[11,"clone","","",2,null],[11,"xyz","","CIE XYZ.",2,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"xyz"}}],[11,"xyza","","CIE XYZ and transparency.",2,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"xyz"}}],[11,"is_valid","","",2,null],[11,"clamp","","",2,null],[11,"clamp_self","","",2,null],[11,"mix","","",2,null],[11,"lighten","","",2,null],[11,"default","","",2,{"inputs":[],"output":{"name":"xyz"}}],[11,"add","","",2,null],[11,"add","","",2,null],[11,"sub","","",2,null],[11,"sub","","",2,null],[11,"mul","","",2,null],[11,"mul","","",2,null],[11,"div","","",2,null],[11,"div","","",2,null],[11,"from","","",2,{"inputs":[{"name":"color"}],"output":{"name":"xyz"}}],[11,"from","","",2,{"inputs":[{"name":"rgb"}],"output":{"name":"xyz"}}],[11,"from","","",2,{"inputs":[{"name":"luma"}],"output":{"name":"xyz"}}],[11,"from","","",2,{"inputs":[{"name":"lab"}],"output":{"name":"xyz"}}],[11,"from","","",2,{"inputs":[{"name":"lch"}],"output":{"name":"xyz"}}],[11,"from","","",2,{"inputs":[{"name":"hsv"}],"output":{"name":"xyz"}}],[11,"from","","",2,{"inputs":[{"name":"hsl"}],"output":{"name":"xyz"}}],[11,"eq","","",3,null],[11,"ne","","",3,null],[11,"fmt","","",3,null],[11,"clone","","",3,null],[11,"lab","","CIE L*a*b*.",3,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"lab"}}],[11,"laba","","CIE L*a*b* and transparency.",3,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"lab"}}],[11,"is_valid","","",3,null],[11,"clamp","","",3,null],[11,"clamp_self","","",3,null],[11,"mix","","",3,null],[11,"lighten","","",3,null],[11,"get_hue","","",3,null],[11,"default","","",3,{"inputs":[],"output":{"name":"lab"}}],[11,"add","","",3,null],[11,"add","","",3,null],[11,"sub","","",3,null],[11,"sub","","",3,null],[11,"mul","","",3,null],[11,"mul","","",3,null],[11,"div","","",3,null],[11,"div","","",3,null],[11,"from","","",3,{"inputs":[{"name":"color"}],"output":{"name":"lab"}}],[11,"from","","",3,{"inputs":[{"name":"xyz"}],"output":{"name":"lab"}}],[11,"from","","",3,{"inputs":[{"name":"rgb"}],"output":{"name":"lab"}}],[11,"from","","",3,{"inputs":[{"name":"luma"}],"output":{"name":"lab"}}],[11,"from","","",3,{"inputs":[{"name":"lch"}],"output":{"name":"lab"}}],[11,"from","","",3,{"inputs":[{"name":"hsv"}],"output":{"name":"lab"}}],[11,"from","","",3,{"inputs":[{"name":"hsl"}],"output":{"name":"lab"}}],[11,"eq","","",4,null],[11,"ne","","",4,null],[11,"fmt","","",4,null],[11,"clone","","",4,null],[11,"lch","","CIE L*C*h°.",4,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"labhue"}],"output":{"name":"lch"}}],[11,"lcha","","CIE L*C*h° and transparency.",4,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"labhue"},{"name":"f32"}],"output":{"name":"lch"}}],[11,"is_valid","","",4,null],[11,"clamp","","",4,null],[11,"clamp_self","","",4,null],[11,"mix","","",4,null],[11,"lighten","","",4,null],[11,"get_hue","","",4,null],[11,"with_hue","","",4,null],[11,"shift_hue","","",4,null],[11,"saturate","","",4,null],[11,"default","","",4,{"inputs":[],"output":{"name":"lch"}}],[11,"add","","",4,null],[11,"add","","",4,null],[11,"sub","","",4,null],[11,"sub","","",4,null],[11,"from","","",4,{"inputs":[{"name":"color"}],"output":{"name":"lch"}}],[11,"from","","",4,{"inputs":[{"name":"lab"}],"output":{"name":"lch"}}],[11,"from","","",4,{"inputs":[{"name":"rgb"}],"output":{"name":"lch"}}],[11,"from","","",4,{"inputs":[{"name":"luma"}],"output":{"name":"lch"}}],[11,"from","","",4,{"inputs":[{"name":"xyz"}],"output":{"name":"lch"}}],[11,"from","","",4,{"inputs":[{"name":"hsv"}],"output":{"name":"lch"}}],[11,"from","","",4,{"inputs":[{"name":"hsl"}],"output":{"name":"lch"}}],[11,"eq","","",5,null],[11,"ne","","",5,null],[11,"fmt","","",5,null],[11,"clone","","",5,null],[11,"hsv","","Linear HSV.",5,{"inputs":[{"name":"rgbhue"},{"name":"f32"},{"name":"f32"}],"output":{"name":"hsv"}}],[11,"hsva","","Linear HSV and transparency.",5,{"inputs":[{"name":"rgbhue"},{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"hsv"}}],[11,"is_valid","","",5,null],[11,"clamp","","",5,null],[11,"clamp_self","","",5,null],[11,"mix","","",5,null],[11,"lighten","","",5,null],[11,"get_hue","","",5,null],[11,"with_hue","","",5,null],[11,"shift_hue","","",5,null],[11,"saturate","","",5,null],[11,"default","","",5,{"inputs":[],"output":{"name":"hsv"}}],[11,"add","","",5,null],[11,"add","","",5,null],[11,"sub","","",5,null],[11,"sub","","",5,null],[11,"from","","",5,{"inputs":[{"name":"color"}],"output":{"name":"hsv"}}],[11,"from","","",5,{"inputs":[{"name":"rgb"}],"output":{"name":"hsv"}}],[11,"from","","",5,{"inputs":[{"name":"luma"}],"output":{"name":"hsv"}}],[11,"from","","",5,{"inputs":[{"name":"xyz"}],"output":{"name":"hsv"}}],[11,"from","","",5,{"inputs":[{"name":"lab"}],"output":{"name":"hsv"}}],[11,"from","","",5,{"inputs":[{"name":"lch"}],"output":{"name":"hsv"}}],[11,"from","","",5,{"inputs":[{"name":"hsl"}],"output":{"name":"hsv"}}],[11,"eq","","",6,null],[11,"ne","","",6,null],[11,"fmt","","",6,null],[11,"clone","","",6,null],[11,"hsl","","Linear HSL.",6,{"inputs":[{"name":"rgbhue"},{"name":"f32"},{"name":"f32"}],"output":{"name":"hsl"}}],[11,"hsla","","Linear HSL and transparency.",6,{"inputs":[{"name":"rgbhue"},{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"hsl"}}],[11,"is_valid","","",6,null],[11,"clamp","","",6,null],[11,"clamp_self","","",6,null],[11,"mix","","",6,null],[11,"lighten","","",6,null],[11,"get_hue","","",6,null],[11,"with_hue","","",6,null],[11,"shift_hue","","",6,null],[11,"saturate","","",6,null],[11,"default","","",6,{"inputs":[],"output":{"name":"hsl"}}],[11,"add","","",6,null],[11,"add","","",6,null],[11,"sub","","",6,null],[11,"sub","","",6,null],[11,"from","","",6,{"inputs":[{"name":"color"}],"output":{"name":"hsl"}}],[11,"from","","",6,{"inputs":[{"name":"rgb"}],"output":{"name":"hsl"}}],[11,"from","","",6,{"inputs":[{"name":"luma"}],"output":{"name":"hsl"}}],[11,"from","","",6,{"inputs":[{"name":"xyz"}],"output":{"name":"hsl"}}],[11,"from","","",6,{"inputs":[{"name":"lab"}],"output":{"name":"hsl"}}],[11,"from","","",6,{"inputs":[{"name":"lch"}],"output":{"name":"hsl"}}],[11,"from","","",6,{"inputs":[{"name":"hsv"}],"output":{"name":"hsl"}}],[11,"default","","",12,{"inputs":[],"output":{"name":"labhue"}}],[11,"fmt","","",12,null],[11,"clone","","",12,null],[11,"from_radians","","Create a new hue from radians, instead of degrees.",12,{"inputs":[{"name":"f32"}],"output":{"name":"labhue"}}],[11,"to_radians","","Convert the hue to radians.",12,null],[11,"from","","",12,{"inputs":[{"name":"f32"}],"output":{"name":"labhue"}}],[11,"into","","",12,null],[11,"eq","","",12,null],[11,"eq","","",12,null],[11,"add","","",12,null],[11,"add","","",12,null],[11,"sub","","",12,null],[11,"sub","","",12,null],[11,"default","","",13,{"inputs":[],"output":{"name":"rgbhue"}}],[11,"fmt","","",13,null],[11,"clone","","",13,null],[11,"from_radians","","Create a new hue from radians, instead of degrees.",13,{"inputs":[{"name":"f32"}],"output":{"name":"rgbhue"}}],[11,"to_radians","","Convert the hue to radians.",13,null],[11,"from","","",13,{"inputs":[{"name":"f32"}],"output":{"name":"rgbhue"}}],[11,"into","","",13,null],[11,"eq","","",13,null],[11,"eq","","",13,null],[11,"add","","",13,null],[11,"add","","",13,null],[11,"sub","","",13,null],[11,"sub","","",13,null],[8,"RgbPixel","","A conversion trait for RGB pixel types.",null,null],[10,"from_rgba","","Create an instance of `Self` from red, green, blue and alpha values.\nThese can be assumed to already be gamma corrected and belongs to the\nrange [0.0, 1.0].",14,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"self"}}],[10,"to_rgba","","Convert the red, green, blue and alpha values of `self` to values in\nthe range [0.0, 1.0]. No gamma correction should be performed.",14,null],[8,"ColorSpace","","Common functionality for color spaces.",null,null],[10,"is_valid","","Check if the color's components are within the expected ranges.",15,null],[10,"clamp","","Return a new color where the components has been clamped to the nearest\nvalid values.",15,null],[10,"clamp_self","","Clamp the color's components to the nearest valid values.",15,null],[8,"Mix","","A trait for linear color interpolation.",null,null],[10,"mix","","Mix the color with an other color, by `factor`.",16,null],[8,"Shade","","The `Shade` trait allows a color to be lightened or darkened.",null,null],[10,"lighten","","Lighten the color by `amount`.",17,null],[11,"darken","","Darken the color by `amount`.",17,null],[8,"GetHue","","A trait for colors where a hue may be calculated.",null,null],[16,"Hue","","The kind of hue unit this color space uses.",18,null],[10,"get_hue","","Calculate a hue if possible.",18,null],[8,"Hue","","A trait for colors where the hue can be manipulated without conversion.",null,null],[10,"with_hue","","Return a new copy of `self`, but with a specific hue.",19,null],[10,"shift_hue","","Return a new copy of `self`, but with the hue shifted by `amount`.",19,null],[8,"Saturate","","A trait for colors where the saturation (or chroma) can be manipulated\nwithout conversion.",null,null],[10,"saturate","","Increase the saturation by `factor`.",20,null],[11,"desaturate","","Decrease the saturation by `factor`.",20,null],[11,"fmt","","",7,null],[11,"clone","","",7,null],[11,"y","","Linear luminance.",7,{"inputs":[{"name":"f32"}],"output":{"name":"color"}}],[11,"ya","","Linear luminance with transparency.",7,{"inputs":[{"name":"f32"},{"name":"f32"}],"output":{"name":"color"}}],[11,"y8","","Linear luminance from an 8 bit value.",7,{"inputs":[{"name":"u8"}],"output":{"name":"color"}}],[11,"ya8","","Linear luminance and transparency from 8 bit values.",7,{"inputs":[{"name":"u8"},{"name":"u8"}],"output":{"name":"color"}}],[11,"linear_rgb","","Linear RGB.",7,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"color"}}],[11,"linear_rgba","","Linear RGB and transparency.",7,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"color"}}],[11,"linear_rgb8","","Linear RGB from 8 bit values.",7,{"inputs":[{"name":"u8"},{"name":"u8"},{"name":"u8"}],"output":{"name":"color"}}],[11,"linear_rgba8","","Linear RGB and transparency from 8 bit values.",7,{"inputs":[{"name":"u8"},{"name":"u8"},{"name":"u8"},{"name":"u8"}],"output":{"name":"color"}}],[11,"linear_pixel","","Linear RGB from a linear pixel value.",7,{"inputs":[{"name":"p"}],"output":{"name":"color"}}],[11,"srgb","","Linear RGB from sRGB.",7,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"color"}}],[11,"srgba","","Linear RGB from sRGB with transparency.",7,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"color"}}],[11,"srgb8","","Linear RGB from 8 bit sRGB.",7,{"inputs":[{"name":"u8"},{"name":"u8"},{"name":"u8"}],"output":{"name":"color"}}],[11,"srgba8","","Linear RGB from 8 bit sRGB with transparency.",7,{"inputs":[{"name":"u8"},{"name":"u8"},{"name":"u8"},{"name":"u8"}],"output":{"name":"color"}}],[11,"srgb_pixel","","Linear RGB from an sRGB pixel value.",7,{"inputs":[{"name":"p"}],"output":{"name":"color"}}],[11,"gamma_rgb","","Linear RGB from gamma corrected RGB.",7,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"color"}}],[11,"gamma_rgba","","Linear RGB from gamma corrected RGB with transparency.",7,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"color"}}],[11,"gamma_rgb8","","Linear RGB from 8 bit gamma corrected RGB.",7,{"inputs":[{"name":"u8"},{"name":"u8"},{"name":"u8"},{"name":"f32"}],"output":{"name":"color"}}],[11,"gamma_rgba8","","Linear RGB from 8 bit gamma corrected RGB with transparency.",7,{"inputs":[{"name":"u8"},{"name":"u8"},{"name":"u8"},{"name":"u8"},{"name":"f32"}],"output":{"name":"color"}}],[11,"gamma_pixel","","Linear RGB from a gamma corrected pixel value.",7,{"inputs":[{"name":"p"},{"name":"f32"}],"output":{"name":"color"}}],[11,"xyz","","CIE XYZ.",7,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"color"}}],[11,"xyza","","CIE XYZ and transparency.",7,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"color"}}],[11,"lab","","CIE L*a*b*.",7,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"color"}}],[11,"laba","","CIE L*a*b* and transparency.",7,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"color"}}],[11,"lch","","CIE L*C*h°.",7,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"labhue"}],"output":{"name":"color"}}],[11,"lcha","","CIE L*C*h° and transparency.",7,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"labhue"},{"name":"f32"}],"output":{"name":"color"}}],[11,"hsv","","Linear HSV.",7,{"inputs":[{"name":"rgbhue"},{"name":"f32"},{"name":"f32"}],"output":{"name":"color"}}],[11,"hsva","","Linear HSV and transparency.",7,{"inputs":[{"name":"rgbhue"},{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"color"}}],[11,"hsl","","Linear HSL.",7,{"inputs":[{"name":"rgbhue"},{"name":"f32"},{"name":"f32"}],"output":{"name":"color"}}],[11,"hsla","","Linear HSL and transparency.",7,{"inputs":[{"name":"rgbhue"},{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"color"}}],[11,"mix","","",7,null],[11,"lighten","","",7,null],[11,"get_hue","","",7,null],[11,"with_hue","","",7,null],[11,"shift_hue","","",7,null],[11,"saturate","","",7,null],[11,"from","","",7,{"inputs":[{"name":"luma"}],"output":{"name":"color"}}],[11,"from","","",7,{"inputs":[{"name":"rgb"}],"output":{"name":"color"}}],[11,"from","","",7,{"inputs":[{"name":"xyz"}],"output":{"name":"color"}}],[11,"from","","",7,{"inputs":[{"name":"lab"}],"output":{"name":"color"}}],[11,"from","","",7,{"inputs":[{"name":"lch"}],"output":{"name":"color"}}],[11,"from","","",7,{"inputs":[{"name":"hsv"}],"output":{"name":"color"}}],[11,"from","","",7,{"inputs":[{"name":"hsl"}],"output":{"name":"color"}}]],"paths":[[3,"Rgb"],[3,"Luma"],[3,"Xyz"],[3,"Lab"],[3,"Lch"],[3,"Hsv"],[3,"Hsl"],[4,"Color"],[3,"Gradient"],[3,"Take"],[3,"Slice"],[3,"Range"],[3,"LabHue"],[3,"RgbHue"],[8,"RgbPixel"],[8,"ColorSpace"],[8,"Mix"],[8,"Shade"],[8,"GetHue"],[8,"Hue"],[8,"Saturate"]]}; initSearch(searchIndex);