-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linked sspr in topics/graphics
- Loading branch information
Showing
2 changed files
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"metadata":{"authors":["Sleeves"],"version":"0.1","page_title":"sspr()"},"elements":[{"type":"label","text":"The sspr() function draws a sprite to\na given screen transform, stretching if\nnecessary."},{"type":"snippet","text":"sspr(\n src -- source sprite\n x0 -- left boundary\n y0 -- top boundary of sprite\n w0 -- width from x0\n h0 -- height from y0\n x1 -- left boundary of target\n y1 -- top boundary of target\n [w1] -- width from x1 (default: w0)\n [h1] -- height from y1 (default: h0)\n)"},{"type":"label","text":"The first 5 values relate to what you intend\nto draw (sprite); the last 4 define where on\nthe screen to draw."},{"type":"note","text":"Passing a sprite width value greater\nthan the actual sprite size will pad\nwith empty space."}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters