A Perl extension designed to manipulate patterns used in tablet weaving is now available for use. This software can be used to create, edit, and refine tablet weaving designs to achieve the desired results.
It also comes with an ASCII representation that can be used for efficient persistent storage, which is human-readable. Moreover, it supports several routines designed to print information about the pattern in an ASCII format.
The module can be imported and included in your code in the following way:
```Perl
use Weaving::Tablet;
my $old_pattern = Weaving::Tablet::new_from_file("my_pattern");
my $new_pattern = Weaving::Tablet::new_from_scratch(20, 40); # 20 cards, 40 rows
```
Some of the other functions available with Weaving::Tablet are load_pattern(), save_pattern(), color_pattern(), twist_pattern(), print_twist(), insert_row(), insert_card(), delete_row(), delete_card(), duplicate_row(), duplicate_card(), and so on.
To access various data structures associated with patterns such as file_name, number_of_cards, number_of_rows, number_of_holes, SZ(), threading(), start(), color_table(), turns(), color(), twist(), dirty() etc., you can use different member functions.
If you are looking to modify the corresponding values of these data structures, you can use data modification functions such as SZ(), threading(), start(), color_table(), turns(), etc.
Overall, Weaving::Tablet is an excellent module for anyone interested in patterns of weaving. The ability to manipulate several data structures using different member functions makes it incredibly useful for designing many different applications.
Version 0.8.2: N/A