This is a new thread and probably in the wrong section but we were hijacking bluatigro thread.
Not sure why you thought I didn't know the variables held the last position.SARG wrote:No, no, no --> draw 100,100 to 40,40. It only keeps the last position.BasicCoder2 wrote:Ok. STEP is "readable" once you get it and perhaps are cognisant of the hidden draw variables for position.Code: Select all
screenres 640,480,32 pset (100,100) 'set draw coordinates at 100,100 line -(40,40) 'draw relative to 140,140 sleep
For testing try with
Code: Select all
screenres 640,480,32 pset (100,100) line -(0,0) sleep
You can return them with the overloaded point function.
:)MrSwiss wrote:Your codes (all of them) are examples, of non-readability, IMHO.BasicCoder2 wrote:Usually I would put readability (by a novice) before speed.
(all the clumsy calculations, in Sub/Function parameters, to be precise,
apart from the fact, that it is also: sloooooooooow)
I personally have no trouble reading them and I find them fast enough.
By "readability" I mean as readable as possible by someone who knows little if anything about programming languages.