rule rotation

This commit is contained in:
Crispy 2024-05-03 14:38:12 +02:00
parent 84e64fe719
commit bb8b272ed4
2 changed files with 32 additions and 2 deletions

View file

@ -131,6 +131,9 @@ fn rule_editor(ui: &mut Ui, rule: &mut Rule, cells: &[CellData]) {
if ui.checkbox(&mut rule.flip_v, "flip V").changed() {
rule.generate_variants();
}
if ui.checkbox(&mut rule.rotate, "rotate").changed() {
rule.generate_variants();
}
let cells_y = rule.height();
let cells_x = rule.width();