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



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.



[Please log in to post a comment]