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

Externalize Pattern Generation #5

Open
samt opened this issue Aug 14, 2014 · 0 comments
Open

Externalize Pattern Generation #5

samt opened this issue Aug 14, 2014 · 0 comments
Milestone

Comments

@samt
Copy link
Owner

samt commented Aug 14, 2014

Take all pattern generation code and place it into a function to generate it.

Should have this prototype:

/*
 * @param String|Array sequence - Sequence of compatible characters for encoding
 * @param String|Int checkdigit - calculated check digit
 * @return Array<Int> - Array of bar/space widths (alternating, starting with bar)
 */
function generateSequence(sequence, checkdigit) { } 
@samt samt added this to the 0.7.x milestone Aug 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant