Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make a new system for converting to and from arrays and slices #81

Merged
merged 9 commits into from
Mar 11, 2018

Conversation

Ogeon
Copy link
Owner

@Ogeon Ogeon commented Feb 18, 2018

This should make some interoperability with other systems better, by making it easier to convert buffers and individual pixels to palette colors.

This includes

  • Bit by bit conversion system for colors.
  • Rgb works with u8 and other integer types.
  • Luma works with u8 and other integer types, and can also be non-linear.
  • Implements AsRef to convert colors to raw data.
  • A slight improvement to the hue types. No need to explicitly call .into() when setting a hue.

Closes #74

@Ogeon Ogeon force-pushed the raw_pixel_conversion branch from 0d2fa65 to 31568d9 Compare March 10, 2018 17:49
@Ogeon Ogeon changed the title [WIP] Make a new system for converting to and from arrays and slices Make a new system for converting to and from arrays and slices Mar 11, 2018
@Ogeon
Copy link
Owner Author

Ogeon commented Mar 11, 2018

bors r+

bors bot added a commit that referenced this pull request Mar 11, 2018
81: Make a new system for converting to and from arrays and slices r=Ogeon a=Ogeon

This should make some interoperability with other systems better, by making it easier to convert buffers and individual pixels to palette colors.

This includes
 * Bit by bit conversion system for colors.
 * `Rgb` works with `u8` and other integer types.
 * `Luma` works with `u8` and other integer types, and can also be non-linear.
 * Implements `AsRef` to convert colors to raw data.
 * A slight improvement to the hue types. No need to explicitly call `.into()` when setting a hue.

Closes #74
@Ogeon
Copy link
Owner Author

Ogeon commented Mar 11, 2018

bors r+

bors bot added a commit that referenced this pull request Mar 11, 2018
81: Make a new system for converting to and from arrays and slices r=Ogeon a=Ogeon

This should make some interoperability with other systems better, by making it easier to convert buffers and individual pixels to palette colors.

This includes
 * Bit by bit conversion system for colors.
 * `Rgb` works with `u8` and other integer types.
 * `Luma` works with `u8` and other integer types, and can also be non-linear.
 * Implements `AsRef` to convert colors to raw data.
 * A slight improvement to the hue types. No need to explicitly call `.into()` when setting a hue.

Closes #74
@bors
Copy link
Contributor

bors bot commented Mar 11, 2018

Build succeeded

@bors bors bot merged commit 7cd6b57 into master Mar 11, 2018
@bors bors bot deleted the raw_pixel_conversion branch March 11, 2018 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant