Expand description
Canvas module.
Structs§
- Radi of the corners on a rounded rectangle.
 - The border width of a rounded rectangle.
 - A canvas that can be drawn on.
 - A color with red, green, blue and alpha components.
 - A bezier curve.
 - An iterator over the segments of a curve.
 - A type for displaying a color as a hex string.
 - A mask that can be used to clip a layer.
 - A paint that can be used to fill or stroke a shape.
 - A pattern that can be used to fill a shape.
 - Properties of a stroke.
 
Enums§
- Ways to anti-alias a shape.
 - Ways to blend two colors.
 - A segment of a curve.
 - A verb that describes the type of curve.
 - Rule determining if a point is inside a shape.
 - A primitive that can be drawn on a canvas.
 - Ways to fill a shape.
 - Ways to draw the end of a stroke.
 - Ways to join two segments of a stroke.
 
Functions§
- Create a new color, with the given hex string.
 - Create a new color, with the given
hue,saturationandlightnesscomponents. - Create a new color, with the given
hue,saturation,lightnessandalphacomponents. - Create a new color, with the given
hue,saturationandvaluecomponents. - Create a new color, with the given
hue,saturation,valueandalphacomponents. - Create a new color, with the given
hue,saturationandlightnesscomponents. - Create a new color, with the given
hue,saturation,lightnessandalphacomponents. - Create a new color, with the given
hue,saturationandvaluecomponents. - Create a new color, with the given
hue,saturation,valueandalphacomponents. - Create a new color, with the given
lightness,aandbcomponents. - Create a new color, with the given
lightness,a,bandalphacomponents. - Create a new color, with the given
lightness,chromaandhuecomponents. - Create a new color, with the given
lightness,chroma,hueandalphacomponents. - Create a new color, with the given
red,greenandbluecomponents. - Create a new color, with the given
red,green,blueandalphacomponents.