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

feat: 'units' parameter for geometry patterns #80

Merged
merged 1 commit into from
Apr 29, 2024
Merged

Conversation

trevorld
Copy link
Owner

  • The "geometry" patterns (e.g. "circle", "stripe", etc.) now allow the new units parameter to set which grid::unit() to use for the the spacing, xoffset, and yoffset parameters (and for the "wave" pattern also the amplitude and frequency parameters) (Allow spacing parameters to use cm/in instead of snpc units #58). By default it will continue to be "snpc" units but can now be changed to "cm", "in", etc.

  • The wave pattern no longer quietly and incorrectly ignores the frequency parameter. The effective wavelength of the wave pattern is now 1 / frequency instead of spacing. However frequency will continue to default to 1 / spacing.

closes #58

* The "geometry" patterns (e.g. "circle", "stripe", etc.) now allow
  the new `units` parameter to set which `grid::unit()` to use for the
  the `spacing`, `xoffset`, and `yoffset` parameters
  (and for the "wave" pattern also the `amplitude` and `frequency` parameters) (#58).
  By default it will continue to be "snpc" units but can now be changed to "cm", "in", etc.

* The `wave` pattern no longer quietly and incorrectly ignores the `frequency` parameter.
  The effective wavelength of the wave pattern is now `1 / frequency` instead of `spacing`.
  However `frequency` will continue to default to `1 / spacing`.

closes #58
@trevorld trevorld merged commit 9c5431b into main Apr 29, 2024
3 checks passed
@trevorld trevorld deleted the pattern-units branch April 29, 2024 09:56
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.

Allow spacing parameters to use cm/in instead of snpc units
1 participant