Skip to content

Commit

Permalink
updated documentation to change row to frames
Browse files Browse the repository at this point in the history
  • Loading branch information
swiftsword94 committed Feb 3, 2024
1 parent 30fc32e commit 6b7139b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,28 +33,28 @@ settings.json format:
"mirror_x": false,
"mirror_y": false,
"scaling_factor": 1.0,
"row": [[-6,0], [-6,1], [-6,0], [-6,-2]]
"frames": [[-6,0], [-6,1], [-6,0], [-6,-2]]
},
{
"angle": 0,
"mirror_x": false,
"mirror_y": false,
"scaling_factor": 0.9375,
"row": [[0,0], [-2,-1], [0,0], [2,0]]
"frames": [[0,0], [-2,-1], [0,0], [2,0]]
},
{
"angle": 0,
"mirror_x": true,
"mirror_y": false,
"scaling_factor": 0.9375,
"row": [[0,0], [0,1], [0,0], [0,-2]]
"frames": [[0,0], [0,1], [0,0], [0,-2]]
},
{
"angle": 0,
"mirror_x": false,
"mirror_y": false,
"scaling_factor": 0.9375,
"row": [[0,0], [0,1], [0,0], [0,-2]]
"frames": [[0,0], [0,1], [0,0], [0,-2]]
}
]
}
10 changes: 5 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ use image_editing::generate_paperdoll;
#[derive(Deserialize)]
pub struct TranslationRow {
// How much to rotate counterclockwise. Any rotation incurs smoothing in the ouput image.
angle: f32,
pub angle: f32,
// Value between 0 and 1 to normally used to help with offseting by an ammount that would cause the image to go out of bounds.
scaling_factor: f32,
pub scaling_factor: f32,
// Boolean for mirroring against x axis.
mirror_x: bool,
pub mirror_x: bool,
// Boolean for mirroring against y axis.
mirror_y: bool,
pub mirror_y: bool,
// An array of Arrays indicating translation in the (X axis, Y axis).
frames: Vec<(i32, i32)>,
pub frames: Vec<(i32, i32)>,
}


Expand Down

0 comments on commit 6b7139b

Please sign in to comment.