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

Remove the hardcoded attributes for the box element #33

Merged
merged 1 commit into from
Oct 14, 2019

Conversation

LagTag
Copy link
Collaborator

@LagTag LagTag commented Oct 29, 2018

Related to issue #30. This PR adds the corner rounding (values 0 to 8) and color attribute to the already existing box element.

label = Zebra::Zpl::Label.new(
    :width         => 800,
    :length        => 800,
    :print_speed   => 6,
    :print_density => 5,
    :copies        => 1
)

label_box_test1 = Zebra::Zpl::Box.new :position => [0, 140], :rounding_degree => 3, :line_thickness => 20, box_width: 200, box_height: 200, :color => "G"

label << label_box_test1
label.dump_contents
>>^XA^LL800^LH0,0^LS10^PW800^PR6^FO0,140^GB200,200,20,B,3^FS^PQ1^XZ

screen shot 2018-10-28 at 9 31 08 pm

@LagTag LagTag mentioned this pull request Oct 14, 2019
6 tasks
@mtking2 mtking2 merged commit 452e399 into bbulpett:master Oct 14, 2019
@mtking2 mtking2 added this to the Version 1.1.0 milestone Oct 23, 2019
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.

3 participants