Shop OBEX P1 Docs P2 Docs Learn Events
Graphics Demo bug — Parallax Forums

Graphics Demo bug

kerrywkerryw Posts: 61
edited 2006-06-03 06:09 in Propeller 1
Not sure if this clobbers anything important but:

VAR
....
long colors[noparse][[/noparse]64]

'init colors
repeat i from 0 to 64
colors := $00001010 * (i+4) & $F + $2B060C02

should be:

'init colors
repeat i from 0 to 63
colors := $00001010 * (i+4) & $F + $2B060C02

Is there someone we should be PM'ing or e-mailing these kinds of things to?

Thanks,
Kerry

Comments

  • Phillip Y.Phillip Y. Posts: 62
    edited 2006-06-03 04:03
    The 'init colors with i=64 doesn't matter because,
    it is only done once at the program start and then after 'init tile screen
    'init bouncing lines uses the long properly for
    byte x[noparse][[/noparse]lines]
    byte y[noparse][[/noparse]lines]
    byte xs[noparse][[/noparse]lines]
    byte ys[noparse][[/noparse]lines]
    this is ok only because "long colors[noparse][[/noparse]64]" occurs immediately before to them in the VAR declarations.

    I am assuming that there is no other programing that uses color data beond 0 to 63.
  • cgraceycgracey Posts: 14,133
    edited 2006-06-03 06:09
    Woops! You're right. I just fixed this and will re-post it along with the other objects once our object exchange is running. I don't think it's up yet, but we've got a new web thing coming where everybody can upload and maintain their objects on their own. It's going to be really nice.

    Thanks for pointing this bug out.
    kerryw said...
    Not sure if this clobbers anything important but:

    VAR
    ....
    long colors[noparse][[/noparse]64]

    'init colors
    repeat i from 0 to 64
    colors := $00001010 * (i+4) & $F + $2B060C02

    should be:

    'init colors
    repeat i from 0 to 63
    colors := $00001010 * (i+4) & $F + $2B060C02

    Is there someone we should be PM'ing or e-mailing these kinds of things to?

    Thanks,
    Kerry
    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    Chip Gracey
    Parallax, Inc.
Sign In or Register to comment.