The api doc on LuaRendering.draw_circle (and presumably draw_rectangle too) should mention that "width=" is in pixels, as all the other values are in tiles. Currently only the entry for draw_line mentions this.
(Are api doc "bugs" supposed to go into this subforum or somewhere else?)
[Bilka] [0.17.43] Missing LuaRendering documentation, draw_circle width is in pixel not tiles.
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
[Bilka] [0.17.43] Missing LuaRendering documentation, draw_circle width is in pixel not tiles.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: [Bilka] [0.17.43] Missing LuaRendering documentation, draw_circle width is in pixel not tiles.
Thanks for the report, fixed for the next version. (Documentation bugs are fine here, if you have lua doc suggestions the modding interface requests subforum is a good place).
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.