Log In  

Saw some unexpected behavior today with pset(x,y,c) when c negative and fractional.

        cls(6)
    for i=0,127 do
        for j=0,127 do
            pset(i,j,(i-16)/32)
        end
    end

If I add a floor command, then the funny stippling goes away. e.g. pset(i,j,flr((i-16)/32))

Cart #seyotabebu-0 | 2022-02-05 | Code ▽ | Embed ▽ | No License

P#106366 2022-02-05 01:18

3

Gonna answer my own bug—I think I have the pattern fill flag on and some values have the correct bit set to draw with pattern when fractional—so probably not a bug.

P#106368 2022-02-05 02:04

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2022-11-30 17:38:13 | 0.007s | Q:15