I am finding the documentation pretty dreadful!
For example on this page;-
https://docs.coronalabs.com/guide/media/displayObjects/index.html
It introduces display objects, and while saying they are all the same it fails to effectively tell you what the parameters are.
An example on that page is;-
local square = display.newRect( myGroup, 0, 0, 100, 100 ) --red square is at the bottom square:setFillColor( 1, 0, 0 ) local circle = display.newCircle( myGroup, 80, 120, 50 )
It doesn’t mention what the 4 numbers are for a rectangle or why there are 3 for circle, what order they are (if you guessed them) and which display objects have which parameters.
Honestly, i have spent quite alot of time searching for parameter information on various methods.
I usually have to find the answers elsewhere.
Where there are links, on specific methods you end up on pages like this… which STILL don’t give any information about method parameters!!!
https://docs.coronalabs.com/api/library/display/newGroup.html
… EDIT - I want to check the parameters for setFillColor so i used the search on docs.coronalabs etc
I went to Display Objects again which showed only this example
local square = display.newRect( myGroup, 0, 0, 100, 100 ) --red square is at the bottom square:setFillColor( 1, 0, 0 ) local circle = display.newCircle( myGroup, 80, 120, 50 ) --green circle is in the middle circle:setFillColor( 0, 1, 0 ) local rect = display.newRect( myGroup, 0, 0, 120, 80 ) --blue rectangle is at the top rect:setFillColor( 0, 0, 1 )
Then clicked on display.newRect (since that is where i am using it)
I went to this page
https://docs.coronalabs.com/daily/api/library/display/newRect.html
and the example there shows this
local myRectangle = display.newRect( 0, 0, 150, 50 ) myRectangle.strokeWidth = 3 myRectangle:setFillColor( 0.5 ) myRectangle:setStrokeColor( 1, 0, 0 )
What on earth are the parameters for setFillColor and how can you navigate to the API documentation for it when a direct search of the method does not show it?
Am i doing it wrong? Should i just be searching example code and hope for comments?
It is more than frustrating and slowing down development hugely.