Came up with this idea a few days ago. Using Electropermanent magnets, one could create “pixels” that can interact with one another based on charge. These interactions on a 2D surface such as fabric, could create a material that can flex and stretch in different ways. It would do so by creating “shapes,” with edges created when two pixels repel (have the same charge), and with the actual solid shape created with a checkerboard pattern of charges. Due to these properties, there are restrictions on what shapes can be created. If you think about a “shape” as having edges between pixels, there are certain rules for how shapes can be formed.
When creating shapes, any point between pixels can have either 0, 2, or 4 lines stemming from it. It cannot have 1 or 3 lines stemming from it. This is because either 1 or 3 lines can create an issue in the arrangement of charges.
One can create intricate shapes or larger composite shapes. These larger shapes can be combined to create lines or structures that can react to shear forces.