Module: ModuleFiller
- Included in:
- VisualQrcode::Qrcode
- Defined in:
- lib/visual_qrcode/module_filler.rb
Constant Summary collapse
- PIXELS_PER_MODULE =
3
Instance Method Summary collapse
Instance Method Details
#fill_vqr_module(x_index, y_index) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/visual_qrcode/module_filler.rb', line 6 def fill_vqr_module(x_index, y_index) if @common_patterns[x_index][y_index].nil? fill_vqr_module_with_image(x_index, y_index) fill_vqr_module_with_basic_qrcode(x_index, y_index) else fill_vqr_module_with_pattern(x_index, y_index) end end |