From 6915315d25358581c1fe8f2f83f1cd0c296bffa7 Mon Sep 17 00:00:00 2001 From: asleeves Date: Fri, 29 Mar 2024 11:26:49 -0400 Subject: [PATCH] Added graphics/sspr page Linked sspr in topics/graphics --- graphics/sspr.json | 1 + topics/graphics.json | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 graphics/sspr.json diff --git a/graphics/sspr.json b/graphics/sspr.json new file mode 100644 index 0000000..74ca351 --- /dev/null +++ b/graphics/sspr.json @@ -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."}]} diff --git a/topics/graphics.json b/topics/graphics.json index 7aea477..c8e108b 100644 --- a/topics/graphics.json +++ b/topics/graphics.json @@ -27,6 +27,11 @@ "ref" : "graphics/line", "text" : "line()" }, + { + "type" : "wiki_ref", + "ref" : "graphics/spr", + "text" : "spr()" + }, { "type" : "wiki_ref", "ref" : "graphics/spr",