Crate clarion

Source
Expand description

A very simple library for working with Clarion data formats in Rust.

Clarion dates are specified by the integral number of days between a given date and the 28th of December, 1800.

Clarion times are specified by the number of centiseconds between a given time and midnight. (A centisecond is 10 milliseconds.)

Clarion colors are specified by a base-10 integral representation of a 24-bit RGB color in 0xBBGGRR format, as opposed to the standard 0xRRGGBB format, where RR represents red, GG represents green, and BB represents the blue 8-bit components of the 24 bit color respectively.

Structs§

ClarionColor
Defines a color in the Clarion color format - an integer between 0 and 16,777,215.
ClarionDate
Defines a calendar date in the ClarionDate format - the number of days between the date and the 28th of December, 1800.
ClarionTime
Defines a moment in time in the Clarion time format, the number of centiseconds between the time and midnight.
RgbColor
Defines a 24-bit color within the RGB color space, represented by three 8-bit integers, one integer for each segment.

Enums§

ClarionErr
Defines error states for the clarion library.