Skip to content

Add round pixels and orange theme #60

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marcpabst
Copy link

Not sure how useful this is, but I think it's quite nice for people using led matrices. It's minor changes, so I'm just leaving this here - if there's interest to merge, I'll go through the PR checklist.

Thank you for helping out with embedded-graphics-simulator development! Please:

  • Check that you've added passing tests and documentation
  • Add an example where applicable
  • Add a CHANGELOG.md entry in the Unreleased section under the appropriate heading (Added, Fixed, etc) if your changes affect the public API
  • Run rustfmt on the project
  • Run just build (Linux/macOS only) and make sure it passes. If you use Windows, check that CI passes once you've opened the PR.

PR description

[add your PR description here]

rename colour theme
@rfuest
Copy link
Member

rfuest commented Jan 22, 2025

Not sure how useful this is, but I think it's quite nice for people using led matrices. It's minor changes, so I'm just leaving this here - if there's interest to merge, I'll go through the PR checklist.

It's a bit outside the original scope of the simulator, but it probably looks nice. And because it's a minor non breaking change I wouldn't mind merging it.


self.data[start_index..start_index + output_color.len()]
.copy_from_slice(output_color)
match self.output_settings.pixel_shape {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This match should be moved outside the points loop to remove it from the hot path.

@@ -54,6 +67,7 @@ pub struct OutputSettingsBuilder {
scale: Option<u32>,
pixel_spacing: Option<u32>,
theme: BinaryColorTheme,
pixel_shape: Option<PixelShape>,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need to use an option for the pixel shape, because Square is the default:

Suggested change
pixel_shape: Option<PixelShape>,
pixel_shape: PixelShape,

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.

2 participants