colorimetry-plot

Crates.iocolorimetry-plot
lib.rscolorimetry-plot
version0.0.8
created_at2025-09-07 20:50:44.91138+00
updated_at2025-09-07 20:50:44.91138+00
descriptionSVG plots for the colorimetry crate
homepage
repositoryhttps://github.com/harbik/colorimetry/plot
max_upload_size
id1828516
size151,842
(harbik)

documentation

README

Colorimetry Plots

Colorimetry Plot Library

This colormimetry library provides functionality for generating SVG-based color plots, with both low-level and higher level API, based on top of the Rust-SVG library. It includes generating basic 2D (x,y) charts composed of several layers, and more complex chromaticity diagrams with the spectral locus, and gamut fills. Here is an example of a XY Chromaticity Diagram for the DisplayP3 color space, using the CIE 2015 observer: XY Chromaticity Diagram Plots are built up in Layers using coordinate transformations between plot space and world coordinates.

Modules

  • chart: Chart composition and rendering.
  • layer: Layered rendering support for compositing multiple plot elements.
  • rendable: Traits and types for objects that can be rendered to SVG.
  • spectrum: Spectrum data visualization and color representation.
  • style_attr: SVG styling attributes and utilities.
  • svgdoc: SVG document creation and manipulation.
  • view: Viewport and plot area management.

Core Features

  • Layered Architecture: Build complex plots by compositing multiple layers
  • Coordinate Transforms: Seamless conversion between plot and world coordinate systems
  • SVG Generation: High-quality vector graphics output
  • Configurable Styling: Flexible styling system for plot elements
  • Precision Control: Configurable floating-point precision for clean output
Commit count: 509

cargo fmt