<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://miniscript.org/w/index.php?action=history&amp;feed=atom&amp;title=Sprite.setCorners</id>
	<title>Sprite.setCorners - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://miniscript.org/w/index.php?action=history&amp;feed=atom&amp;title=Sprite.setCorners"/>
	<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=Sprite.setCorners&amp;action=history"/>
	<updated>2026-04-23T21:18:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>http://miniscript.org/w/index.php?title=Sprite.setCorners&amp;diff=1429&amp;oldid=prev</id>
		<title>DSlower: Adding page with basic info and example</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=Sprite.setCorners&amp;diff=1429&amp;oldid=prev"/>
		<updated>2025-08-06T00:07:55Z</updated>

		<summary type="html">&lt;p&gt;Adding page with basic info and example&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Function to change the value of [[Sprite.corners]]. Takes a list with 4 elements as a parameter, each element should be a list [x, y].&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
This will stretch the top of the sprite&lt;br /&gt;
&amp;lt;ms&amp;gt;sp = new Sprite&lt;br /&gt;
sp.image = file.loadImage(&amp;quot;/sys/pics/Wumpus.png&amp;quot;)&lt;br /&gt;
sp.x = 480&lt;br /&gt;
sp.y = 320&lt;br /&gt;
&lt;br /&gt;
c = sp.corners&lt;br /&gt;
//Moving the top right corner 100 pixels to the right&lt;br /&gt;
c[2][0] += 100&lt;br /&gt;
&lt;br /&gt;
//Moving the top left corner 100 pixels to the left&lt;br /&gt;
c[3][0] -= 100&lt;br /&gt;
&lt;br /&gt;
sp.setCorners c&lt;br /&gt;
&lt;br /&gt;
display(4).sprites.push sp&lt;br /&gt;
&amp;lt;/ms&amp;gt;&lt;/div&gt;</summary>
		<author><name>DSlower</name></author>
		
	</entry>
</feed>