First of all I am happy to see that the forums are back online! Today I like to improve my coding skills. My question is, how do I test if a bit is set at the position x,y on the screen at ST-HIGH? I know about the POINT command, but I like to find a faster way. Any ideas?
Omikronman wrote:Oh, I had forgotten to say that I try to do it with Omikron.Basic (unfortunately there isn´t a Omikron.Basic section in the forums so I did my thread into "other basic". Maybe some sort of PEEK command would work, but I don´t know how.
Omikronman wrote:Tnx anyway BoNus ^^.
I played around with it and I need some advice. I loose time when using
peek(lpeek($44e)+y*80+x\8) and (1 shl(7-(x and 7)))
because I need in addition to that line a IF ... THEN ... statement to get results of 0 or 1 dependend of the pixel (IF peek ... >0 then result=1). I am not good in maths, but is it possible perhaps to modify the line to get results of 0 and 1?
charles wrote:this seems to only work on mono chrome since color uses some bizzare resolution and format for the color pallette
Users browsing this forum: No registered users and 1 guest