Minor Lua SDK docs feedback (2.7.1)

Apologies if I've reported these before, but I've been working on improving the scraper for playdate-luacats and noticed few minor issues in the Lua SDK docs which I'm currently having to work around:

  1. playdate.network.http:query is not in the docs. That anchor is listed as playdate.network.http:post instead of playdate.network.http:query, but doesn't specify method. I think the description there needs to be moved down to playdate.network.http:post and a new description written for the signature playdate.network.http:query(method, path, [headers], [data])
  2. playdate.graphics.setClipRect(rect) is incorrectly duplicated under playdate.graphics.setClipRect(x, y, width, height). It has it's own definition one line below.
  3. playdate.graphics.sprite:setStencilPattern is listed in the docs as playdate.graphics.setStencilPattern (copy pasta)
  4. playdate.graphics.sprite:setStencil is listed in the docs as playdate.graphics.setStencilPattern (copy pasta)
  5. playdate.graphics.sprite.setStencilPattern({ row1, row2, row3, row4, row5, row6, row7, row8 }) should not be a table (no braces) and just be (row1, row2, row3, row4, row5, row6, row7, row8 as the table form is already documented as playdate.graphics.setStencilPattern(pattern)
  6. playdate.sound.synth:setADSR function signature is missing curvature
  7. playdate.ui.crankIndicator:getBounds Function signature and docs are missing optional parameters [xOffset, yOffset].
2 Likes