mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-07-24 08:05:04 +00:00
Make noise generation resolution aware (#1909)
* Make noise generation resolution aware * Invert "Scale" so it's not "Frequency"; make "Clipping" 100x100 not 1x1 --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
parent
0dfddd529b
commit
c5dde18fd6
5 changed files with 67 additions and 81 deletions
|
@ -168,9 +168,7 @@ impl Footprint {
|
|||
}
|
||||
|
||||
pub fn scale(&self) -> DVec2 {
|
||||
let x = self.transform.transform_vector2((1., 0.).into()).length();
|
||||
let y = self.transform.transform_vector2((0., 1.).into()).length();
|
||||
DVec2::new(x, y)
|
||||
self.transform.decompose_scale()
|
||||
}
|
||||
|
||||
pub fn offset(&self) -> DVec2 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue