Embedded Graphics Versions Save

A no_std graphics library for embedded applications

embedded-graphics-v0.8.1

9 months ago

Changed

  • (technically breaking) #731 Bump MSRV to 1.71.1
  • #730 Made the following methods const:
    • MonoFontStyleBuilder::font
    • MonoFontStyleBuilder::underline
    • MonoFontStyleBuilder::strikethrough
    • MonoFontStyleBuilder::reset_text_color
    • MonoFontStyleBuilder::reset_background_color
    • MonoFontStyleBuilder::reset_underline
    • MonoFontStyleBuilder::reset_strikethrough
    • MonoTextStyle::new

embedded-graphics-core-v0.4.0

1 year ago

Added

  • #612, #699 Added GetPixel trait.
  • #625 Added CSS colors and color conversions to Rgb666 and Bgr666.
  • #656 Added Rgb666 and Bgr666 conversions.
  • #710 Added AnchorX, AnchorY, AnchorPoint::x, AnchorPoint::y and AnchorPoint::from_xy.
  • #710 Added Rectangle::resized_width, Rectangle::resized_height, Rectangle::anchor_x and Rectangle::anchor_y.

Changed

  • (breaking) #660 Remove RawU18 color storage type and use RawU24 in is place for Rgb666 and Bgr666.
  • #651, #652 Improved performance of color conversions.
  • (breaking) #663 Upgraded Cargo dependencies to their latest versions.
  • (breaking) #689 Bump Minimum Supported Rust Version (MSRV) to 1.61.

embedded-graphics-v0.8.0

1 year ago

Added

  • #592 Add support for defmt behind a feature (defmt).
  • #612, #699 Added GetPixel trait and implementations for ImageRaw and Framebuffer.
  • #621 Added Rgb666 and Bgr666 color type support.
  • #641 Added Line::with_delta constructor.
  • #656 Added Rgb666 and Bgr666 conversions.
  • #673 Added Framebuffer.
  • #709 Added Image::with_center.
  • #710 Added AnchorX, AnchorY, AnchorPoint::x, AnchorPoint::y and AnchorPoint::from_xy.
  • #710 Added Rectangle::resized_width, Rectangle::resized_height, Rectangle::anchor_x and Rectangle::anchor_y.

Changed

  • (breaking) #660 Remove RawU18 color storage type and use RawU24 in is place for Rgb666 and Bgr666.
  • #639 Made the following functions const:
  • (breaking) #690 Remove ImageRaw::new_binary const helper method. ImageRaw::new can now be used in const contexts, so use it instead of new_binary.
  • #639, #690 Made the following functions const:
    • Point::component_mul
    • Point::component_div
    • Size::saturating_add
    • Size::saturating_sub
    • Size::component_mul
    • Size::component_div
    • BinaryColor::invert
    • BinaryColor::is_on
    • BinaryColor::is_off
    • Rectangle::with_center
    • Rectangle::is_zero_sized
    • RawDataSlice::new
    • MonoTextStyle::new
    • Arc::with_center
    • Arc::from_circle
    • Arc::to_circle
    • Circle::with_center
    • Ellipse::with_center
    • Sector::with_center
    • Sector::from_circle
    • Sector::to_circle
    • Styled::new
    • ImageRaw::new
    • ImageRaw::data_width
    • Image::new
    • FancyDisplay::new
    • MockDisplay::get_pixel
    • MonoFont::mime
    • MonoFont::glyph_mapping
    • MonoTextStyleBuilder::new
    • MonoTextStyleBuilder::text_color
    • MonoTextStyleBuilder::background_color
    • MonoTextStyleBuilder::underline_with_color
    • MonoTextStyleBuilder::strikethrough_with_color
    • MonoTextStyleBuilder::build
    • Ellipse::new
    • Ellipse::contains
    • PrimitiveStyle::new
    • PrimitiveStyle::with_stroke
    • PrimitiveStyle::with_fill
    • PrimitiveStyle::is_transparent
    • PrimitiveStyleBuilder::new
    • PrimitiveStyleBuilder::fill_color
    • PrimitiveStyleBuilder::reset_fill_color
    • PrimitiveStyleBuilder::stroke_color
    • PrimitiveStyleBuilder::reset_stroke_color
    • PrimitiveStyleBuilder::stroke_width
    • PrimitiveStyleBuilder::stroke_alignment
    • PrimitiveStyleBuilder::build
    • DecorationColor::is_none
    • DecorationColor::is_text_color
    • DecorationColor::is_custom
  • #651, #652 Improved performance of color conversions.
  • #653 Don't ignore trailing newlines in Text.
  • #662 ImageRaw::new no longer panics if width == 0.
  • (breaking) #688 MonoFont is now Send + Sync; implementations of GlyphMapping must be Sync.
  • (breaking) #663 Upgraded Cargo dependencies to their latest versions.
  • (breaking) #689 Bump Minimum Supported Rust Version (MSRV) to 1.61.
  • (breaking) #715 Changed the direction of angles. Positive angles are now clockwise.

Fixed

  • #648 Fixed incorrect text bounding box calculation when multi-byte characters are used.
  • #713 Fixed possible panic when drawing an invalid MonoFont.

embedded-graphics-v0.7.1

2 years ago

Changed

  • #606 Bump minimum embedded-graphics-core version from 0.3.0 to 0.3.2

embedded-graphics-v0.7.0

2 years ago

Please see the release notes and migration guide for more details on the full 0.7.0 release.

Added

  • #602 Implemented core::fmt::Display for Point and Size.

Changed

  • (breaking) - #600 Renamed Mapping::all to Mapping::iter.
  • (breaking) - #603 MockDisplay::eq was replaced by a PartialEq implementation for MockDisplay.

Removed

  • (breaking) - #604 Removed incomplete JIS X 0201 fonts.

embedded-graphics-core-v0.3.2

2 years ago

Added

  • #602 Implemented core::fmt::Display for Point and Size.

embedded-graphics-v0.7.0-beta.2

2 years ago

Added

  • #587 Added From<&TextStyle> impl for TextStyleBuilder and From<&MonoFont> for MonoFontBuilder.
  • #589 Implemented From trait to convert from RGB colors to grayscale colors, between different grayscale colors and from grayscale and RGB colors to BinaryColor.

Changed

  • (breaking) - #596 Added more ISO8859 glyph subsets as well as JIS_X0201 for bundled MonoFonts, supporting more languages. The latin1 subset was renamed to iso8859-1.

embedded-graphics-v0.7.0-beta.1

3 years ago

Added

  • (breaking) #552 Added the Output associated type to Drawable to allow returning non-() values from drawing operations.
  • #563 Added is_none, is_text_color and is_custom methods to DecorationColor.
  • #563 Added is_transparent methods to PrimitiveStyle and MonoTextStyle.
  • #569 Added a line_height field to TextStyle.
  • #571 Added MockDisplay::set_pixels to set pixels from an iterator.
  • #572 Added ImageRaw::new_binary to create const images with binary image data.
  • #576 Added reset methods for color settings to MonoTextStyleBuilder and PrimitiveStyleBuilder.
  • #582 Added StyledDrawable, StyledDimensions and StyledPixels traits.

Changed

  • (breaking) #561 Renamed HorizontalAlignment and VerticalAlignment to Alignment and Baseline.
  • (breaking) #561 Replaced TextRenderer::vertical_offset by baseline arguments for the other TextRenderer methods.
  • (breaking) #563 The bounding boxes returned by Dimensions implementations for styled primitives no longer depend on the fill and stroke color.
  • (breaking) #563 Drawing a primitive with a transparent stroke (stroke_color == None && stroke_width > 0) will now reduce the filled area.
  • (breaking) #566 The Drawable::Output type was changed to Point for styled Text objects. The returned point can be used to chain texts with different styles.
  • (breaking) #569 Moved the text rendering API into a separate text::renderer submodule.
  • (breaking) #569 The non_exhaustive attribute was added to the TextStyle struct.
  • (breaking) #571 Added color argument to MockDisplay::from_points to make it usable for all color types.
  • (breaking) #572 Removed the height argument from ImageRaw::new. The height is now calculated based on the width and data length.
  • (breaking) #572 Replaced pixelcolor::raw::RawDataIter by the types in the iterator::raw module.
  • (breaking) #573 Changed MonoFont from a trait to a struct.
  • (breaking) #580 Changed Text to directly contain the styling information without needing a Styled wrapper.
  • (breaking) #580 Removed character_style from TextStyle. Character and text style can now be set independently in the Text object.
  • (breaking) #580 Moved Styled from the crate root to the primitives module.

Removed

  • (breaking) #582 Removed iterator::IntoPixels trait. Use Styled::pixels instead.

Fixed

  • #571 Rectangle::points did return a non empty iterator for rectangles with zero width.

embedded-graphics-core-v0.3.0

3 years ago

Added

  • (breaking) #552 Added the Output associated type to Drawable to allow returning non-() values from drawing operations.
  • #563 Added is_none, is_text_color and is_custom methods to DecorationColor.

Removed

  • (breaking) #569 Removed text renderer API. The text renderer API will be added back when it has stabilized.
  • (breaking) #572 Moved pixelcolor::raw::RawDataIter into embedded-graphics crate.

Fixed

  • #571 Rectangle::points did return a non empty iterator for rectangles with zero width.

embedded-graphics-v0.7.0-alpha.1

3 years ago