Skip to content

Commit

Permalink
Added graphics/sspr page
Browse files Browse the repository at this point in the history
Linked sspr in topics/graphics
  • Loading branch information
asleeves committed Mar 29, 2024
1 parent 3662145 commit 6915315
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions graphics/sspr.json
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."}]}
5 changes: 5 additions & 0 deletions topics/graphics.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
"ref" : "graphics/line",
"text" : "line()"
},
{
"type" : "wiki_ref",
"ref" : "graphics/spr",
"text" : "spr()"
},
{
"type" : "wiki_ref",
"ref" : "graphics/spr",
Expand Down

0 comments on commit 6915315

Please sign in to comment.