Addd scale slider

This commit is contained in:
2025-03-03 20:28:46 +01:00
parent a62728db7b
commit 57f22a6d6c
2 changed files with 34 additions and 22 deletions

View File

@@ -3,17 +3,18 @@ component VRAMSegment inherits Rectangle {
in property <image> img;
in property <int> clip_x;
in property <int> clip_y;
in property <int> scale: 1;
in property <float> scale: 1.0;
width: 64px*scale;
height: 256px*scale;
clip: true;
Image {
source: img;
x: -root.clip_x*1px*scale;
y: -root.clip_y*1px*scale;
width: img.width*1px*scale;
height: img.height*1px*scale;
source: img;
x: -root.clip_x*1px*scale;
y: -root.clip_y*1px*scale;
width: img.width*1px*scale;
height: img.height*1px*scale;
image-rendering: pixelated;
}
}
@@ -21,7 +22,7 @@ export component VRAMArea inherits Rectangle {
in property <image> img;
in property <int> img_x;
in property <int> img_y;
in property <int> scale: 1;
in property <float> scale: 1.0;
width: ((64*16+15)*1px)*scale;
height: ((256*2+1)*1px)*scale;