Difference between revisions of "PixelDisplay.scale"

From MiniScript Wiki
Jump to navigation Jump to search
(Created page with "<c>PixelDisplay.clear</c> is a scaling factor controlling how this pixel display is rendered on screen. The default value of 1 means that one pixel in the display draws as 1...")
 
m (JoeStrout moved page PixelDisplay.clear to PixelDisplay.scale without leaving a redirect: wrong title)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<c>PixelDisplay.clear</c> is a scaling factor controlling how this pixel display is rendered on
+
<c>[[PixelDisplay]].scale</c> is a scaling factor controlling how this pixel display is rendered on
 
screen.  The default value of 1 means that one pixel in the display
 
screen.  The default value of 1 means that one pixel in the display
 
draws as 1 pixel on screen; 2 double the scale, making each pixel
 
draws as 1 pixel on screen; 2 double the scale, making each pixel

Latest revision as of 23:47, 28 April 2020

PixelDisplay.scale is a scaling factor controlling how this pixel display is rendered on screen. The default value of 1 means that one pixel in the display draws as 1 pixel on screen; 2 double the scale, making each pixel appear twice the normal width and height.

Usage Notes

You may assign either a simple number to scale the same way in width and height, or a list [x scale, y scale] to scale differently in X and Y.

Example

gfx.scale = 5	//  makes every gfx pixel 5 times bigger in X and Y