Log In  


I'm on v0.1.1d and noticed this program doesn't draw anything. circfill otoh seems to work okay without a color param.

function _draw()
	cls(0)
	color(7)
	circ(200, 100, 50)
end
1


it does draw a circle, it's just drawn off screen. 200,100 is out of the 128x128 screen area.

Try this:

function _draw()
	cls(0)
	color(7)
	circ(64, 64, 50)
end

1

@nullidea this is a bug in picotron, not pico 8


My bad, was on the super blog not paying attention to where the post was. Yeah I'm getting the same issue, but if you pass the color as a parameter to circ() it will draw.

function _draw()
	cls(0)
	circ(200, 100, 50, 7)
end

But it does seem like a bug that circ() without the optional color parameter isn't working when color() has been set.

Also interesting is that this issue doesn't exist with circfill(), the below code works as expected:

function _draw()
	cls(0)
	color(7)
	circfill(200, 100, 50)
end

You are just setting the variable color to 7 not doing anything with that variable If you want to be able to change that color by changing the color variable try this.

function _draw()
	cls(0)
	color(7)
	circfill(200, 100, 50, color)
end

@VirtualPixelBox That's... wrong. color(7) is calling the function color to set the colour of draw operations, but in this case it's not working for circ().


1

Thanks @eigenbom -- this is fixed for 0.1.1e


Thx!



[Please log in to post a comment]