Oxygen Basic
Programming => Bugs & Feature Requests => Topic started by: Peter on May 23, 2016, 11:02:53 PM
-
Hi Charles,
there's a bug in the latest oxygen.dll
older dll, date o3.18.2o15 works.
include "asm.inc"
window 1024,800,1
single c, pc, clr, p, cm, x, y
for p=1 to 9600 step 0.1
pc +=1
c +=0.01
cm = c/2.6
x = cos(rad(p)) * (cm/c)*c
y = sin(rad(p)) * (cm/c)*c
color clr+12, clr-pc, clr+pc
fillcircle x+1024/2, y+800/2, 20
color clr+1, clr-pc, clr+pc
fillcircle x+1024/2, y+800/2, 20
clr +=1
if clr > 20 then clr=1
next
waitkey
winEnd
.
-
Hi Peter,
This one should fix the step problem:
.
-
Thank you Charles for your work.
it works now!
are you not tired over it because the devil is doing so many mistakes in your total art work? :o
-
It certainly requires considerable patience. The bugs are interesting, and worthy of entomological study :) but time is limited.
In this case, the bug arose from changes to improve the performance of for .. next loops. the start, end and step values are now precalculated before entering the loop.