Forum
v1.8.9 bright 8 does not work (*solved*) - Printable Version

+- Forum (https://www.boriel.com/forum)
+-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11)
+---- Forum: Bug Reports (https://www.boriel.com/forum/forumdisplay.php?fid=15)
+---- Thread: v1.8.9 bright 8 does not work (*solved*) (/showthread.php?tid=875)



v1.8.9 bright 8 does not work (*solved*) - Eqx - 04-14-2019

Hello Boriel,
I found a problem wih bright 8
I'm coding some routines for a game and I need use bright 8 to draw four lines on a square with attributes: ink 2 and bright 1
I set paper 8, ink 8 and bright 8 to draw lines in this zone but zxbasic changes the brightness to zero and seems doesn't works.

Thanks

Code:
ink 2: bright 1
plot 117,154:
draw 0,-8: draw 1,0: draw 0,-5: draw -1,0: draw 0,-8: draw 8,0: draw 0,1: draw 5,0: draw 0,-1: draw 8,0: draw 0,8:
draw -1,0: draw 0,5: draw 1,0: draw 0,8: draw -8,0: draw 0,-1: draw -5,0: draw 0,1: draw -8,0

do

.....

if IN 32766 = 190 go sub fire

print paper 6;over 1; INK 0;AT 5,15;"  ";AT 6,15;"  "

loop

fire:

ink 8: paper 8: bright 8: over 1
for n=1 TO 2
    plot 0,191:draw 126,-47
    plot 255,191:draw -126,-47
    plot 80,75: draw 48,69
    plot 175,75:draw -48,69
next n

over 0

return



Re: v1.8.9 Bright 8 issue - Eqx - 04-15-2019

My apologies for repeat the question, I'm in trouble with this Smile specifying
bright 8 works in zxboriel as sinclair basic ?
(transparent bright)
Thx a lot
Best regards!

Siento insistir en esta cuestión
Para poder tomar una decisión, tan solo necesito saber si es un posible bug de esta versión o el zx basic no soporta el valor 8 para el brillo de la misma manera que lo hace el basic de sinclair .
Muchas gracias
Un saludo!


Re: v1.8.9 bright 8 does not work - boriel - 04-16-2019

It should work as in Sinclair BASIC. ZX Basic uses its own printing routine.
I'll look into it, thx 8)


Re: v1.8.9 bright 8 does not work - Eqx - 04-16-2019

Problem only is with bright 8.
paper 8 and ink 8 works fine in zx basic
Thank you very much Boriel!


Re: v1.8.9 bright 8 does not work - boriel - 04-17-2019

Ok, there was a (long lasting!) bug in both FLASH and BRIGHT, now fixed.
Please, download this beta, and tell me if it works ok :roll:

http://boriel.com/files/zxb/zxbasic-1.8.10-beta11-win32.zip
http://boriel.com/files/zxb/zxbasic-1.8.10-beta11.tar.gz
http://boriel.com/files/zxb/zxbasic-1.8.10-beta11.zip


Re: v1.8.9 bright 8 does not work - Eqx - 04-18-2019

Awesome!! Confusedhock:
Thank you very much Boriel, now it works perfectly

Thx a lot!

[Image: cfa239d6adb00e0497158fff3a3f76c5o.jpg]

1.8.9
[Image: 13a4d640126c2761c9da15a4a8c77443o.jpg]

1.8.10
[Image: 03672527049e58a914c097d7345a5a62o.jpg]


Re: v1.8.9 bright 8 does not work - boriel - 04-18-2019

Seems that nobody used BRIGHT 8 nor FLASH 8 before!
I will put these updates in the next 1.8.10 stable. In the meantime, keep this beta10 :wink:

BTW nice screenshots!